/* Ported from the user-supplied Figma Make export: src/index.css
   (Tailwind v4 import removed — this design doesn't use any Tailwind
   utility classes in its markup, only these custom classes, so the
   build-step dependency was dropped and this ships as a plain stylesheet.
   Manrope is loaded via wp_enqueue_style in functions.php instead of a CSS
   @import, matching the font-loading pattern used in the other theme
   versions — it lets the browser fetch the font in parallel with this
   stylesheet instead of discovering it only after this file downloads.) */

:root {
  --paper: #f3f3f0;
  --ink: #11110f;
  --muted: #6d6d67;
  --line: #d8d8d2;
  /* Brand accent — now the aliraz-theme-v3 orange (#f4712a), swapped in at
     the user's request in place of the brand-blue (held for now since the
     logo will be recolored to match later). Fills (buttons, the success
     icon, the float-tag) pair this with --white text, matching v3's own
     .btn-pill-primary exactly — note v3 does this too at 2.9:1 contrast,
     under WCAG AA's 4.5:1 for normal text; kept as-is on request rather
     than switched to dark text, which would have passed at 6.5:1.
     --accent-hover is v3's own hover shade (#d65a19). No separate
     --accent-light is needed the way the blue required one: this orange
     already clears 6.7:1 against the site's near-black sections
     (footer, dark-work, testimonials, process-detail) at its base value. */
  --accent: #f4712a;
  --accent-hover: #d65a19;
  --accent-light: #f4712a;
  --white: #ffffff;
  --radius: 28px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: "Manrope", sans-serif; -webkit-font-smoothing: antialiased; }
body, button, input, select, textarea { font-family: "Manrope", sans-serif; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
img { display: block; width: 100%; }
/* Horizontal-bleed clipping (e.g. the hero's rotated .float-tag spilling
   past its own box) lives on .app, NOT html/body and NOT as an ancestor of
   .site-header. Two real-browser footguns stack here: (1) overflow other
   than visible on ANY ancestor of a position:sticky element breaks it —
   this is why .app previously had to be overflow:visible once it wrapped
   the header; (2) setting overflow-x alone (leaving overflow-y at its
   default "visible") makes the browser auto-promote overflow-y to "auto"
   per the CSS Overflow spec, which silently turns html/body into their own
   scroll container and breaks sticky positioning against the real viewport
   even when html/body are never visually an "ancestor" problem on paper.
   Fix: overflow-x:hidden lives only on .app, and .site-header is now a
   sibling of .app (not a descendant of it) — see header.php/footer.php —
   so the header is never inside an element that clips or re-scrolls it. */
.wrap { width: calc(100% - clamp(40px, 6.25vw, 120px)); margin-inline: auto; }
.app { overflow-x: hidden; }

.site-header { width: 100%; height: 88px; padding-inline: clamp(25px, 3.75vw, 70px); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; position: sticky; top: 0; z-index: 50; background: rgba(243,243,240,.9); backdrop-filter: blur(18px); }
.wordmark { font-size: 17px; font-weight: 700; letter-spacing: .13em; width: fit-content; }
.wordmark span { color: var(--accent); }
.site-logo-lockup { width: fit-content; display: flex; align-items: center; gap: 10px; }
.site-logo-mark { width: auto; height: auto; max-height: 34px; }
.nav-shell { background: rgba(255,255,255,.75); border: 1px solid rgba(17,17,15,.07); box-shadow: 0 10px 35px rgba(0,0,0,.04); border-radius: 99px; padding: 6px; display: flex; gap: 2px; backdrop-filter: blur(12px); }
.nav-shell a { color: var(--muted); padding: 10px 17px; border-radius: 99px; font-size: 12px; transition: .2s; }
.nav-shell a:hover, .nav-shell a.active { background: var(--ink); color: var(--white); }
.site-header > .pill-button { justify-self: end; }
.pill-button { min-height: 43px; width: fit-content; display: inline-flex; align-items: center; justify-content: center; gap: 22px; padding: 10px 18px; border-radius: 99px; background: var(--accent); color: var(--white); font: 600 12px/1 "Manrope", sans-serif; border: 1px solid transparent; transition: transform .2s, background .2s; }
.pill-button:hover { transform: translateY(-2px); background: var(--accent-hover); }
.pill-button-dark { background: var(--ink); color: var(--white); }
.pill-button-dark:hover { background: #2c2c27; }
.menu-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.menu-toggle span { display: block; width: 22px; height: 1px; background: var(--ink); margin: 5px; }

/* ---------- Scroll reveal (site-wide) ----------
   Classes applied by main.js to every direct child of <main> except the
   first (that one is always the current page's hero/above-the-fold
   section, which must render visible immediately), plus the individual
   cards/items inside each section's grids (.reveal-item), which cascade
   in one after another via a per-item transition-delay set in JS. */
.reveal { opacity: 0; transform: translateY(52px) scale(.98); transition: opacity .9s cubic-bezier(.16,1,.3,1), transform .9s cubic-bezier(.16,1,.3,1); }
.reveal.is-visible { opacity: 1; transform: translateY(0) scale(1); }
.reveal-item { opacity: 0; transform: translateY(26px); transition: opacity .6s cubic-bezier(.16,1,.3,1), transform .6s cubic-bezier(.16,1,.3,1); }
.reveal-item.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
    .reveal, .reveal-item { opacity: 1; transform: none; transition: none; }
}

.hero { padding: 58px 0 54px; }
/* Grid, not flex: matches .hero-bottom's own 1fr/320px/1fr/48px-gap column
   math exactly, so "Digital Marketing & Growth Strategist" lines up with
   the left edge of "I build revenue engines..." and "Based in Dhaka ·
   Working Globally" lines up with the right edge of the "Hi, I'm Aliraz..."
   copy below it, instead of both sitting at a flat 6% inset that didn't
   match either. */
.hero-kicker { display: grid; grid-template-columns: 1fr 320px 1fr; gap: 48px; align-items: center; margin: 0 0 26px; font-size: 12px; line-height: 1.4; font-weight: 600; text-transform: uppercase; letter-spacing: .07em; }
.hero-kicker span:first-child { grid-column: 1; text-align: left; }
.hero-kicker span:last-child { grid-column: 3; text-align: right; }
.hero h1, .page-hero h1 { margin: 0; font-size: clamp(74px, 11.2vw, 180px); line-height: 1; letter-spacing: -.07em; font-weight: 500; text-align: center; }
.hero h1 span, .worklog-hero h1 span, .process-hero h1 span { color: transparent; -webkit-text-stroke: 1.5px var(--ink); }
.hero-bottom { margin-top: 10px; min-height: 350px; display: grid; grid-template-columns: 1fr 320px 1fr; align-items: center; gap: 48px; }
.hero-bottom > p { max-width: 260px; font-size: 26px; line-height: 1.15; letter-spacing: -.04em; }
.hero-portrait { height: 350px; border-radius: 160px 160px 24px 24px; position: relative; overflow: visible; }
.hero-portrait img { height: 100%; object-fit: cover; object-position: center 18%; border-radius: inherit; filter: saturate(.8); }
.float-tag { position: absolute; top: 30%; left: -42px; background: var(--accent); color: var(--white); border-radius: 99px; padding: 10px 16px; transform: rotate(-8deg); font-size: 11px; }
.hero-copy { justify-self: end; max-width: 235px; }
.hero-copy p { color: var(--muted); font-size: 14px; line-height: 1.7; margin-bottom: 24px; }

.stats { background: var(--white); border-block: 1px solid var(--line); display: grid; grid-template-columns: repeat(4,1fr); padding: 0 clamp(16px, 3vw, 56px); }
.stats div { min-height: 155px; border-right: 1px solid var(--line); display: flex; flex-direction: column; justify-content: center; padding: 30px; }
.stats div:first-child { border-left: 1px solid var(--line); }
.stats strong { font-size: 46px; letter-spacing: -.05em; font-weight: 500; }
.stats span { color: var(--muted); text-transform: uppercase; font-size: 12px; font-weight: 600; letter-spacing: .07em; margin-top: 8px; }

.section-space { padding-block: 140px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 70px; }
.section-head h2 { font-size: clamp(52px, 6vw, 96px); line-height: 1.02; letter-spacing: -.06em; font-weight: 500; margin: 20px 0 0; }
.eyebrow { font-size: 12px; line-height: 1.4; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; }
.dot, .light-dot { display: flex; align-items: center; gap: 10px; }
.dot:before, .light-dot:before { content: ""; width: 7px; height: 7px; background: var(--accent); border-radius: 50%; }
.light-dot:before { background: var(--accent-light); }
.services-list { border-top: 1px solid var(--line); }
.service-row { display: grid; grid-template-columns: 70px 1.2fr 1fr 30px; gap: 30px; align-items: center; padding: 34px 6px; border-bottom: 1px solid var(--line); transition: padding .2s, background .2s; }
.service-row:hover { background: var(--white); padding-inline: 24px; }
.service-row > span { font-size: 12px; font-weight: 600; color: var(--accent); }
.service-row h3 { margin: 0; font-size: 30px; letter-spacing: -.035em; font-weight: 500; }
.service-row p { margin: 0; color: var(--muted); line-height: 1.65; font-size: 15px; }

/* ---------- Origin Story (Home page) ----------
   Restored from the pre-redesign theme. Built in this theme's own system:
   same clamp()-sized heading scale as .section-head h2, same saturate(.8)
   photo treatment as .hero-portrait/.impact-story-media, same pill-button
   CTA used everywhere else on the page. */
.origin-story { padding: 130px 0; border-top: 1px solid var(--line); background: var(--white); overflow: hidden; }
.origin-story .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 70px; align-items: center; }
.origin-story h2 { font-size: clamp(34px, 4.2vw, 54px); line-height: 1.1; letter-spacing: -.04em; font-weight: 500; margin: 18px 0 22px; }
.origin-story p { color: var(--muted); font-size: 17px; line-height: 1.75; max-width: 440px; margin-bottom: 30px; }
.origin-story-media { height: 440px; border-radius: var(--radius); overflow: hidden; background: var(--paper); }
.origin-story-media img { height: 100%; object-fit: cover; filter: saturate(.8); }

.dark-work { padding: 130px 0; background: #0c0c0b; color: var(--white); }
.dark-work .section-head { margin-bottom: 60px; }
.dark-work .dot:before { background: var(--accent-light); }
.impact-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 16px; }
/* Cards are now links to a supporting story (see front-page.php) — the
   hover lift is the same affordance already used for clickable cards
   elsewhere (.process-map a:hover), so it reads as interactive. */
.impact-card { min-height: 330px; border-radius: var(--radius); padding: 36px; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; background: #1a1a18; transition: transform .25s ease; }
.impact-card:hover { transform: translateY(-4px); }
.impact-main { grid-row: span 2; min-height: 680px; background: radial-gradient(circle at 80% 15%, #294a41, transparent 30%), linear-gradient(145deg,#171c1a,#080908); }
.impact-card p { font-size: 12px; font-weight: 600; color: #b7b7b0; text-transform: uppercase; letter-spacing: .07em; }
.impact-card h3 { font-size: clamp(28px,3.5vw,52px); line-height: 1.06; letter-spacing: -.05em; font-weight: 500; max-width: 680px; }
.impact-story-media { margin: 35px 0; display: grid; grid-template-columns: 1.35fr .65fr; gap: 12px; min-height: 230px; }
.impact-story-media img { height: 100%; min-height: 230px; object-fit: cover; border-radius: 18px; filter: saturate(.8); }
.impact-story-media-placeholder { height: 100%; min-height: 230px; border-radius: 18px; background: #1a1a18; }
.impact-story-media div { border-radius: 18px; padding: 22px; background: #222724; display: flex; flex-direction: column; justify-content: space-between; }
.impact-story-media span { color: #8f9692; font-size: 12px; }
.impact-story-media strong { font-size: 17px; line-height: 1.35; font-weight: 500; }
.impact-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.impact-metrics span { padding-top: 20px; border-top: 1px solid #444; color: #a9a9a4; font-size: 12px; }
.impact-metrics strong { display: block; color: var(--accent-light); font-size: 54px; font-weight: 500; }
.green-card { background: #222220; color: var(--white); }
.green-card p { color: #aaa; }
.green-card strong { font-size: 70px; line-height: 1; font-weight: 500; }
.green-card span { font-size: 12px; }
.image-card { position: relative; min-height: 335px; }
.image-card img { position: absolute; inset: 0; height: 100%; object-fit: cover; opacity: .58; }
.image-card div { position: relative; z-index: 1; margin-top: auto; }
.image-card h3 { margin-bottom: 0; font-size: 30px; }

.career-list { border-top: 1px solid var(--line); }
.career-row { display: grid; grid-template-columns: 60px 1fr 1.4fr 1fr; gap: 25px; align-items: center; min-height: 105px; border-bottom: 1px solid var(--line); }
.career-row span { color: var(--accent); font-size: 12px; font-weight: 600; }
.career-row p { color: var(--muted); font-size: 12px; font-weight: 600; }
.career-row h3 { font-size: 20px; font-weight: 500; }
.career-row strong { font-size: 13px; font-weight: 600; }
.onemarc { margin-bottom: 140px; min-height: 520px; display: grid; grid-template-columns: 1fr 1.1fr; border-radius: var(--radius); overflow: hidden; background: var(--white); border: 1px solid var(--line); }
.onemarc > div { padding: 70px; display: flex; flex-direction: column; justify-content: center; }
/* Matches .origin-story h2's sizing (smaller "feature" scale) rather than
   the big .section-head h2 scale this previously shared — this is a card
   introducing one project, not a page section header. */
.onemarc h2 { font-size: clamp(34px, 4.2vw, 54px); line-height: 1.1; letter-spacing: -.04em; font-weight: 500; margin: 18px 0 22px; }
.onemarc-mark { background: #121211; align-items: center; }
/* The global "img { width:100% }" rule was stretching the logo edge to
   edge inside its padded half of the card, reading oversized next to the
   smaller copy. Capped and centered instead, like a logo mark rather than
   a full-bleed image. */
.onemarc-mark img { width: 55%; max-width: 240px; object-fit: contain; }
.onemarc p:not(.eyebrow) { color: var(--muted); max-width: 570px; line-height: 1.7; font-size: 16px; margin: 28px 0; }

.journal { background: var(--white); padding: 130px 0; }
.post-grid, .worklog-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.post-card { background: #111; color: var(--white); border-radius: 22px; padding: 0; min-height: 440px; display: flex; flex-direction: column; justify-content: flex-end; position: relative; overflow: hidden; isolation: isolate; transition: transform .25s, box-shadow .25s; }
.post-card:hover { transform: translateY(-6px); box-shadow: 0 20px 50px rgba(0,0,0,.08); }
.post-card > img { position: absolute; inset: 0; height: 100%; object-fit: cover; z-index: -2; transition: transform .5s; }
.post-card:hover > img { transform: scale(1.035); }
.post-overlay { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,.08) 10%, rgba(0,0,0,.86) 90%); }
.post-card .post-meta { position: absolute; z-index: 1; left: 26px; right: 26px; top: 24px; display: flex; justify-content: space-between; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .07em; }
.post-content { padding: 28px; }
.post-card h3 { margin: 0 0 16px; font-size: 29px; line-height: 1.12; letter-spacing: -.04em; font-weight: 500; }
.post-card p { color: #d0d0cc; font-size: 14px; line-height: 1.6; }
.post-card footer { margin-top: 25px; padding-top: 20px; display: flex; justify-content: space-between; border-top: 1px solid rgba(255,255,255,.3); font-size: 11px; font-weight: 600; }
.post-featured { min-height: 540px; }

.footer { padding: 90px clamp(25px, 3.75vw, 70px) 35px; background: #080807; color: var(--white); }
.footer-intro { color: #aaa; }
.footer-title { display: block; margin: 50px 0; font-size: clamp(65px,10vw,140px); line-height: 1; letter-spacing: -.075em; font-weight: 500; }
.footer-title span { color: var(--accent-light); font-size: .65em; }
.footer-contact { display: flex; align-items: center; gap: 40px; padding-bottom: 70px; color: #aaa; font-size: 12px; font-weight: 600; }
/* ---------- Newsletter signup (footer) ----------
   Restored from the pre-redesign theme, styled for this theme's dark
   footer: translucent white inputs, mint outline button — same accent
   treatment as .pill-button but as a plain rectangular form control to sit
   quietly in the footer rather than compete with the two real CTAs above. */
.footer-newsletter { display: flex; flex-direction: column; align-items: stretch; gap: 14px; margin-left: auto; width: min(100%, 420px); }
/* 13px → 12px: matches the rest of the footer's text scale (.footer-contact
   is 12px) instead of sitting a size apart from its own component. */
.footer-newsletter > p { color: #aaa; font-size: 12px; line-height: 1.6; margin: 0; }
.footer-newsletter form { display: flex; width: 100%; }
.footer-newsletter input[type="email"] { flex: 1; min-width: 0; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.15); color: var(--white); padding: 13px 16px; font-size: 12px; font-family: "Manrope", sans-serif; }
.footer-newsletter input[type="email"]::placeholder { color: rgba(255,255,255,.4); }
.footer-newsletter input[type="email"]:focus { outline: none; border-color: var(--accent-light); }
.footer-newsletter button { border: 1px solid var(--white); background: transparent; color: var(--white); padding: 13px 20px; font-size: 12px; font-weight: 600; font-family: "Manrope", sans-serif; cursor: pointer; white-space: nowrap; transition: background .2s, color .2s, border-color .2s; }
.footer-newsletter button:hover { background: var(--accent); color: var(--white); }
.footer-newsletter .footer-newsletter-note { color: var(--accent-light); font-size: 12px; margin: 0; }
.footer-newsletter .footer-newsletter-error { color: #ff8a8a; font-size: 12px; margin: 0; }

.footer-grid { border-top: 1px solid #2b2b29; padding-top: 35px; display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 40px; }
.wordmark-light { color: var(--white); }
.footer-grid p, .footer-copy { color: #777; font-size: 11px; line-height: 1.7; }
.footer-grid > div { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.footer-grid a:not(.wordmark) { font-size: 11px; color: #aaa; }
.footer-copy { text-align: right; align-items: flex-end !important; }

.page-hero { padding: 110px 0 140px; }
.page-hero > .eyebrow { margin-bottom: 55px; }
.page-hero h1 { font-size: clamp(70px, 9.5vw, 150px); line-height: 1; text-align: left; }
.page-hero-grid { display: grid; grid-template-columns: 1fr 410px; align-items: center; gap: 100px; margin-top: 90px; }
.page-hero-grid > p, .lede { font-size: 28px; line-height: 1.25; letter-spacing: -.035em; max-width: 680px; }
.page-hero-grid img { height: 330px; object-fit: cover; border-radius: var(--radius); object-position: center 30%; }
.about-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 120px; padding-bottom: 140px; }
.about-intro blockquote { margin: 0; font-size: 38px; line-height: 1.15; letter-spacing: -.045em; }
.about-intro div p { color: var(--muted); line-height: 1.8; font-size: 14px; }
.philosophy { background: var(--white); padding: 130px 0; border-block: 1px solid var(--line); }
.philosophy-grid { display: grid; grid-template-columns: 1fr 1fr; }
.philosophy-grid article { min-height: 260px; padding: 35px; border: 1px solid rgba(17,17,15,.18); margin: -1px 0 0 -1px; }
.philosophy-grid article > span, .role-no { font-size: 12px; font-weight: 600; color: var(--accent); }
.philosophy-grid h3 { font-size: 26px; font-weight: 500; margin-top: 75px; }
.philosophy-grid p { max-width: 430px; color: var(--muted); font-size: 15px; line-height: 1.65; }
.skill-grid { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.skill-grid div { display: flex; justify-content: space-between; padding: 30px 20px; border-bottom: 1px solid var(--line); }
.skill-grid div:nth-child(odd) { border-right: 1px solid var(--line); }
.skill-grid span { font-size: 15px; }
.skill-grid strong { font-size: 13px; font-weight: 600; color: var(--muted); }

/* ---------- Certifications (About page) ----------
   Restored from the pre-redesign theme (not part of the Figma Make file),
   designed in this theme's own vocabulary: paper/white cards, var(--line)
   borders, var(--radius) corners, mint hover accent, same auto-scroll
   marquee idea as the original — track renders the list twice back-to-back
   (see page-about.php) and scrolls exactly half its own width for a
   seamless loop, pausing on hover/focus so a visitor can read a card. */
/* Black, matching the footer — a deliberate dark "bookend" rather than an
   accident: unlike testimonials/contact-strip (which sit directly above the
   black footer and need separation from it), certifications has a solid
   white section — career-detail — between it and anything else dark. */
.certifications { padding: 130px 0; overflow: hidden; background: #080807; color: var(--white); }
.certifications .cert-card { box-shadow: 0 20px 45px rgba(0,0,0,.35); }
.cert-track-wrap { overflow: hidden; margin-top: 50px; padding-inline: clamp(25px, 3.75vw, 70px); }
.cert-track { display: flex; gap: 16px; width: max-content; animation: aliraz-cert-scroll 42s linear infinite; }
.cert-track:hover, .cert-track:focus-within { animation-play-state: paused; }
.cert-card { flex-shrink: 0; width: 210px; background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 22px; display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; transition: border-color .2s, transform .2s; }
.cert-card:hover { border-color: var(--accent); transform: translateY(-4px); }
.cert-card-image { width: 100%; aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center; }
.cert-card-image img { width: auto; max-width: 100%; max-height: 100%; object-fit: contain; }
.cert-card p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
@keyframes aliraz-cert-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .cert-track { animation: none; } }

.career-detail { background: var(--white); padding: 130px 0; }
.career-detail article { display: grid; grid-template-columns: 50px 1fr 1fr 1.3fr; gap: 30px; padding: 45px 0; border-top: 1px solid var(--line); }
.career-detail article p { color: var(--muted); font-size: 11px; font-weight: 600; text-transform: uppercase; }
.career-detail h3, .career-detail h4 { font-size: 20px; font-weight: 500; margin: 12px 0; }
.career-detail ul { margin: 0; padding: 0; list-style: none; color: var(--muted); font-size: 14px; line-height: 1.6; display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; align-content: start; }
.career-detail ul li { display: flex; gap: 10px; }
.career-detail ul li:before { content: ""; width: 4px; height: 4px; margin-top: 8px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
/* align-self: start stops this grid cell from stretching to the row's
   full height (which the long bullet-list column otherwise forces on
   every column) — without it, align-items:center below centers the
   logo+name block within that whole stretched-tall cell instead of
   just against each other, dragging it down out of line with the
   date/role and bullet columns beside it. */
.career-company { display: flex; align-items: center; gap: 16px; align-self: start; }
/* Fixed HEIGHT, flexible width (capped) — not a fixed square. Some
   company logos are near-square (BDCOM, Cupiie, TechShop) and some are
   wide horizontal logotypes (RITT, Rapid Web Services); forcing every
   logo into the same square box via object-fit:contain shrank the wide
   ones down to a thin sliver centered in empty padding. Sizing off
   height instead lets each logo keep its own natural proportions. */
.career-logo { height: 56px; width: auto; max-width: 150px; flex-shrink: 0; object-fit: contain; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 8px 14px; }
.career-detail h3 a { color: inherit; }
.career-detail h3 a:hover { text-decoration: underline; }
/* Light, not the original dark #11110f — testimonials sits directly above
   the black footer, and two near-black sections back to back (same issue
   as .contact-strip, see its comment) blended into one with no seam. Paper
   section + white cards reuses the exact light-section/white-card pattern
   already established by .cert-card elsewhere on this page, rather than
   introducing a new background color. No ".testimonials .dot:before"
   override is needed any more either — the base .dot:before rule (accent,
   for light backgrounds) now applies correctly on its own. */
.testimonials { padding: 130px 0; background: var(--paper); color: var(--ink); }

/* Slider: shows 3 of the 5 testimonials at once (assets/js/main.js moves
   .testimonial-track by one card at a time, auto-advancing and pausing on
   hover/focus — same pause-on-interaction pattern as .cert-track). */
.testimonial-slider { overflow: hidden; }
.testimonial-controls { display: flex; gap: 10px; }
.testimonial-nav { width: 44px; height: 44px; flex-shrink: 0; border-radius: 50%; border: 1px solid var(--line); background: var(--white); font-size: 16px; line-height: 1; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.testimonial-nav:hover { background: var(--accent); border-color: var(--accent); color: var(--white); }
.testimonial-track { display: flex; gap: 12px; transition: transform .45s cubic-bezier(.65,0,.35,1); }
.testimonial-track blockquote { flex: 0 0 calc((100% - 24px) / 3); width: calc((100% - 24px) / 3); margin: 0; min-height: 470px; background: var(--white); border: 1px solid var(--line); border-radius: 22px; padding: 34px; display: flex; flex-direction: column; box-sizing: border-box; }
.testimonial-track blockquote > span { color: var(--accent); font-size: 12px; font-weight: 600; }
.testimonial-track h3 { margin: 80px 0 25px; font-size: 28px; line-height: 1.2; letter-spacing: -.035em; font-weight: 500; }
.testimonial-track p { color: var(--muted); font-size: 15px; line-height: 1.75; }
.testimonial-track footer { margin-top: auto; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; display: flex; align-items: center; gap: 14px; }
.testimonial-photo { width: 48px; height: 48px; flex-shrink: 0; border-radius: 50%; object-fit: cover; border: 1px solid var(--line); }
.placeholder-note { color: #777; font-size: 11px; margin-top: 25px; }
.career-detail li { margin-bottom: 10px; }

/* ---------- Industries (About page) ----------
   Restored from the pre-redesign theme. Reuses this theme's existing pill
   vocabulary (same shape as .filters a on the Worklog page) so it reads as
   part of the same system rather than a new pattern. */
.industry-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.industry-tags span { display: inline-flex; align-items: center; border: 1px solid var(--line); background: var(--white); border-radius: 99px; padding: 9px 18px; font-size: 14px; color: var(--ink); transition: border-color .2s, background .2s; }
.industry-tags span:hover { border-color: var(--accent); background: var(--paper); }

.worklog-hero, .process-hero { padding-bottom: 90px; }
/* Renamed from the shared ".lede" class to its own ".page-lede" — on
   Worklog/Process this always overrode the general ".lede" rule down to
   18px, so the plain ".lede" class was carrying two unrelated sizes (28px
   generally — used by Privacy's hero lede — vs 18px here), which was
   confusing even though both rendered correctly. Now self-contained with
   its own name and all the properties it needs (letter-spacing/max-width
   previously came from the general ".lede" rule by cascade). */
.page-lede { margin: 70px 0 0 auto; font-size: 18px; line-height: 1.55; letter-spacing: -.035em; max-width: 680px; }
.worklog-body { padding-bottom: 140px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.filters a { display: inline-block; border: 1px solid #bbb; background: transparent; border-radius: 99px; padding: 9px 18px; font-size: 11px; cursor: pointer; }
.filters a.selected { background: var(--ink); border-color: var(--ink); color: var(--white); }
.worklog-grid { grid-template-columns: repeat(3,1fr); }
.worklog-grid .post-card { min-height: 500px; }
.worklog-grid .post-featured h3 { font-size: 38px; }
.worklog-grid .post-card:nth-child(4) { grid-column: span 2; }
/* Light, not the original dark #11110f — this sits directly above the
   black footer on both pages that use it (Process, Worklog) and the two
   near-black blocks were blending into one with no visible seam. */
.contact-strip { background: var(--paper); color: var(--ink); padding: 90px clamp(25px, 3.75vw, 70px); display: grid; grid-template-columns: 1.3fr .8fr auto; align-items: end; gap: 70px; }
.contact-strip h2 { font-size: clamp(45px,6vw,80px); line-height: 1.02; letter-spacing: -.06em; font-weight: 500; margin: 30px 0 0; }
.contact-strip > p { font-size: 16px; line-height: 1.7; color: var(--muted); }

.process-map { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; padding-bottom: 140px; }
.process-map a { border: 1px solid var(--line); border-radius: 20px; padding: 25px; min-height: 290px; display: flex; flex-direction: column; transition: .2s; }
.process-map a:hover { background: var(--white); transform: translateY(-4px); }
.process-map span { font-size: 12px; font-weight: 600; color: var(--accent); }
.process-map h3 { margin-top: 70px; font-size: 22px; font-weight: 500; }
.process-map p { color: var(--muted); font-size: 14px; line-height: 1.65; }
.process-map a > :last-child { margin-top: auto; align-self: flex-end; }
.process-detail { background: #0b0b0a; color: var(--white); padding: 90px 0 20px; }
/* Each stage is now its own card (rounded border + subtle fill + hover
   lift) instead of a bare row separated by a bottom border — reuses the
   light-section white-card chrome pattern (.cert-card, .testimonial-track
   blockquote) in a dark palette, so it reads as part of the same visual
   system. The large outlined stage number (.step-watermark) reuses the
   -webkit-text-stroke outline technique already used for ".hero h1 span"
   etc., sized up and faded into the card background. */
.process-detail article { position: relative; overflow: hidden; padding: 70px clamp(24px, 3vw, 60px); margin-bottom: 28px; display: grid; grid-template-columns: 170px 1.1fr .8fr; gap: 70px; border: 1px solid #242421; border-radius: 28px; background: #121210; transition: border-color .25s ease, transform .25s ease, background-color .25s ease; scroll-margin-top: 20px; }
.process-detail article:last-child { margin-bottom: 0; }
.process-detail article:hover { border-color: var(--accent); transform: translateY(-4px); background: #151512; }
.process-detail article > div, .process-detail article > ul { position: relative; z-index: 1; }
.process-detail article > div:first-child span { color: var(--accent-light); font-size: 60px; }
.process-detail article > div:first-child p { color: #777; font-size: 11px; font-weight: 600; text-transform: uppercase; }
.process-detail h2 { font-size: 55px; line-height: 1; letter-spacing: -.05em; font-weight: 500; margin: 0 0 40px; }
.process-detail article > div:nth-child(2) p { color: #aaa; font-size: 16px; line-height: 1.75; }
.process-detail ul { list-style: none; padding: 0; margin: 0; }
.process-detail li { display: flex; gap: 15px; padding: 16px 0; border-bottom: 1px solid #333; font-size: 12px; color: #bbb; }
.process-detail li span { color: var(--accent-light); }
.step-watermark { position: absolute; top: -26px; right: 24px; z-index: 0; font-size: clamp(150px, 15vw, 230px); line-height: 1; font-weight: 600; color: transparent; -webkit-text-stroke: 1.5px rgba(255,255,255,.07); pointer-events: none; user-select: none; }

.contact-page { padding: 110px 0 140px; display: grid; grid-template-columns: 1fr 1fr; gap: 100px; }
.contact-copy h1 { font-size: clamp(65px,7vw,100px); line-height: 1; letter-spacing: -.07em; font-weight: 500; margin: 50px 0; }
.contact-copy > p:not(.eyebrow) { max-width: 540px; color: var(--muted); font-size: 16px; line-height: 1.7; }
.contact-details { margin-top: 70px; border-top: 1px solid var(--line); }
.contact-details div { display: flex; justify-content: space-between; gap: 30px; padding: 22px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.contact-details span { color: var(--muted); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.contact-form-shell { background: var(--white); border-radius: var(--radius); padding: 45px; box-shadow: 0 30px 80px rgba(0,0,0,.06); }
.form-heading { margin-bottom: 40px; display: flex; justify-content: space-between; font-size: 12px; }
.form-heading strong { font-weight: 500; }
form label { display: block; color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; margin-top: 22px; }
input, select, textarea { width: 100%; border: 0; border-bottom: 1px solid var(--line); background: transparent; padding: 14px 0; outline: none; color: var(--ink); font-size: 14px; resize: vertical; text-transform: none; }
input:focus, select:focus, textarea:focus { border-color: var(--ink); }
.submit-button { width: 100%; border: 0; border-radius: 99px; background: var(--accent); color: var(--white); display: flex; justify-content: space-between; padding: 18px 24px; margin-top: 30px; cursor: pointer; font-weight: 600; font-family: "Manrope", sans-serif; }
.success { min-height: 540px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.success > span { display: grid; place-items: center; width: 55px; height: 55px; background: var(--accent); color: var(--white); border-radius: 50%; }
.success h2 { font-size: 46px; line-height: 1; letter-spacing: -.05em; font-weight: 500; }
.success p { color: var(--muted); line-height: 1.7; margin-bottom: 30px; }
.availability { padding-bottom: 140px; }
.availability > div { border-top: 1px solid var(--line); display: grid; grid-template-columns: 100px 1fr; align-items: center; padding: 30px 0; }
.availability > div:last-child { border-bottom: 1px solid var(--line); }
.availability div span { color: var(--muted); font-size: 12px; font-weight: 600; }
.availability h3 { margin: 0; font-size: 25px; font-weight: 500; }

.article-page { padding-bottom: 130px; }
.article-head { padding: 70px 0 90px; display: grid; grid-template-columns: 54px minmax(0,1.2fr) minmax(360px,.8fr); gap: clamp(28px,4vw,70px); align-items: center; }
.article-social { align-self: start; display: flex; flex-direction: column; align-items: center; gap: 13px; padding-top: 110px; color: var(--muted); }
.article-social span { writing-mode: vertical-rl; font-size: 10px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 8px; }
.article-social a { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; font-size: 11px; font-weight: 700; }
.back-link { font-size: 12px; font-weight: 600; }
.article-meta { display: flex; gap: 18px; margin: 55px 0 24px; text-transform: uppercase; font-size: 11px; font-weight: 600; letter-spacing: .06em; color: var(--muted); }
.article-head h1 { max-width: 900px; font-size: clamp(50px,6.5vw,105px); line-height: .97; letter-spacing: -.06em; font-weight: 500; margin: 0; }
.article-title-block > p { max-width: 700px; margin: 35px 0 0; font-size: 17px; line-height: 1.65; color: var(--muted); }
.article-hero-image { width: 100%; height: 560px; object-fit: cover; border-radius: 24px; }
.article-layout { display: grid; grid-template-columns: minmax(0,1fr) 360px; gap: 34px; align-items: start; }
.article-body-card { background: var(--white); border-radius: 24px; padding: clamp(35px,5vw,80px); }
.article-lead { font-size: 27px !important; line-height: 1.45 !important; color: var(--ink) !important; letter-spacing: -.025em; margin: 0 0 70px; }
.article-body-card section { margin-bottom: 65px; }
.article-body-card h2 { font-size: 43px; line-height: 1.12; letter-spacing: -.045em; font-weight: 500; margin-bottom: 22px; }
.article-body-card section p, .article-body-card .entry-content p { color: #454540; font-size: 17px; line-height: 1.85; }
.article-body-card blockquote { margin: 80px 0; padding: 45px; background: #11110f; color: var(--white); border-radius: 20px; font-size: 28px; line-height: 1.4; letter-spacing: -.025em; }
.article-author { padding: 28px; background: var(--paper); border-radius: 18px; display: flex; align-items: center; gap: 20px; }
.article-author img { width: 74px; height: 74px; border-radius: 50%; object-fit: cover; }
.article-author span, .article-author p { display: block; color: var(--muted); font-size: 11px; margin: 0; }
.article-author strong { display: block; margin: 4px 0; font-size: 16px; }
.related-articles { position: sticky; top: 110px; }
.related-articles > .eyebrow { margin: 0 0 18px; }
.related-articles .post-card { min-height: 250px; margin-bottom: 14px; }
.related-articles .post-card h3 { font-size: 20px; }
.related-articles .post-card p { display: none; }
.related-articles .post-content { padding: 22px; }
.related-articles .post-card .post-meta { left: 22px; right: 22px; top: 18px; }
.related-articles .post-card footer { margin-top: 16px; padding-top: 14px; }
.legal { max-width: 900px; padding-bottom: 140px; }
.legal article { display: grid; grid-template-columns: 80px 1fr; padding: 45px 0; border-top: 1px solid var(--line); }
.legal article > span { font-size: 12px; font-weight: 600; color: var(--muted); }
.legal h2 { margin: 0 0 18px; font-size: 28px; font-weight: 500; }
.legal p { color: var(--muted); line-height: 1.75; }
.legal > p a { text-decoration: underline; }

/* WordPress default gallery/caption support inside post content */
.wp-block-image img, .entry-content img { max-width: 100%; height: auto; }
.screen-reader-text {
    position: absolute !important;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
}

@media (max-width: 900px) {
  .wrap { width: calc(100% - 36px); }
  .site-header { width: 100%; height: 74px; padding-inline: 18px; grid-template-columns: 1fr auto auto; gap: 12px; }
  .site-header > .pill-button { display: none; }
  .menu-toggle { display: block; }
  .nav-shell { display: none; position: absolute; top: 65px; left: 0; right: 0; background: var(--white); border-radius: 18px; padding: 12px; flex-direction: column; }
  .nav-shell.nav-open { display: flex; }
  .nav-shell a { padding: 15px; }
  .hero { padding-top: 55px; }
  /* Below 900px, .hero-bottom stops being the 1fr/320px/1fr grid the desktop
     alignment above is matched to (it switches to 1fr 1fr with the portrait
     and copy wrapping to a second row), so there's no equivalent column
     edge left to line up with — reverts to the original flex/space-between. */
  .hero-kicker { display: flex; grid-template-columns: none; gap: 0; margin-inline: 0; }
  .hero h1 { font-size: clamp(65px,16vw,110px); }
  .hero-bottom { grid-template-columns: 1fr 1fr; gap: 24px; }
  .hero-bottom > p { grid-column: span 2; max-width: 450px; }
  .hero-portrait { height: 300px; }
  .stats { grid-template-columns: 1fr 1fr; padding-inline: 18px; }
  .stats div:nth-child(3) { border-left: 1px solid var(--line); }
  .section-space, .journal, .dark-work, .career-detail { padding-block: 90px; }
  .section-head { align-items: flex-start; gap: 30px; }
  .service-row { grid-template-columns: 45px 1fr 25px; }
  .service-row p { grid-column: 2/3; }
  .origin-story .wrap { grid-template-columns: 1fr; gap: 36px; }
  .origin-story-media { height: 320px; }
  .impact-grid { grid-template-columns: 1fr; }
  .impact-main { min-height: 580px; }
  .career-row { grid-template-columns: 45px 1fr 1.5fr; padding: 20px 0; }
  .career-row strong { grid-column: 2/4; }
  .onemarc { grid-template-columns: 1fr; }
  .onemarc-mark { min-height: 300px; }
  .post-grid { grid-template-columns: 1fr 1fr; }
  .post-featured { grid-column: span 2; }
  .page-hero-grid, .about-intro, .contact-page { grid-template-columns: 1fr; gap: 50px; }
  .page-hero-grid img { width: 70%; margin-left: auto; }
  .philosophy-grid, .skill-grid { grid-template-columns: 1fr; }
  .skill-grid div:nth-child(odd) { border-right: 0; }
  .career-detail article { grid-template-columns: 40px 1fr 1fr; }
  .career-detail ul { grid-column: 2/4; }
  .testimonial-track blockquote { flex-basis: calc((100% - 12px) / 2); width: calc((100% - 12px) / 2); min-height: 420px; }
  .testimonial-nav { width: 38px; height: 38px; font-size: 14px; }
  .worklog-grid { grid-template-columns: 1fr; }
  .worklog-grid .post-featured { grid-row: auto; min-height: 550px; }
  .worklog-grid .post-card:nth-child(4) { grid-column: auto; }
  .contact-strip { grid-template-columns: 1fr; align-items: start; gap: 30px; }
  .process-map { grid-template-columns: 1fr 1fr; }
  .process-detail article { grid-template-columns: 100px 1fr; gap: 30px; padding: 55px clamp(20px, 4vw, 40px); }
  .process-detail ul { grid-column: 2; }
  .step-watermark { font-size: clamp(100px, 24vw, 170px); top: -10px; right: 10px; }
  .article-head { grid-template-columns: 40px 1fr; }
  .article-hero-image { grid-column: 2; height: 440px; }
  .article-layout { grid-template-columns: 1fr; }
  .related-articles { position: static; display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
  .related-articles > .eyebrow { grid-column: 1/-1; }
}

@media (max-width: 600px) {
  .wrap { width: calc(100% - 28px); }
  .site-header { width: 100%; padding-inline: 14px; }
  .wordmark { font-size: 13px; letter-spacing: .08em; }
  .hero { padding-top: 45px; }
  .hero-kicker { font-size: 10px; gap: 18px; }
  .hero h1 { font-size: 18.5vw; line-height: 1; }
  .hero-bottom { display: flex; flex-direction: column; align-items: stretch; margin-top: 45px; }
  .hero-bottom > p { font-size: 22px; }
  .hero-portrait { width: 78%; align-self: center; height: 330px; }
  .hero-copy { justify-self: auto; max-width: none; }
  .stats { padding: 0 14px; }
  .stats div { min-height: 120px; padding: 18px; }
  .stats strong { font-size: 34px; }
  .section-head { flex-direction: column; margin-bottom: 45px; }
  .section-head h2 { font-size: 49px; }
  .service-row { padding-block: 24px; }
  .service-row h3 { font-size: 21px; }
  .impact-main { min-height: 480px; }
  .impact-card { padding: 25px; }
  .impact-story-media { grid-template-columns: 1fr; }
  .impact-story-media div { min-height: 130px; }
  .impact-metrics { grid-template-columns: 1fr; }
  .impact-metrics strong { font-size: 40px; }
  .career-row { grid-template-columns: 35px 1fr; gap: 8px; }
  .career-row h3, .career-row strong { grid-column: 2; }
  .onemarc { margin-bottom: 90px; }
  .onemarc > div { padding: 35px 25px; }
  .post-grid { grid-template-columns: 1fr; }
  .post-featured { grid-column: auto; }
  .footer { padding-inline: 20px; }
  .footer-title { font-size: 17vw; }
  .footer-contact { align-items: flex-start; flex-direction: column; gap: 18px; }
  .footer-newsletter { margin-left: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-copy { text-align: left; align-items: flex-start !important; }
  .page-hero { padding: 70px 0 90px; }
  .page-hero h1 { font-size: 17vw; }
  .page-hero-grid { margin-top: 55px; }
  .page-hero-grid > p, .lede { font-size: 21px; }
  .page-hero-grid img { width: 100%; }
  .about-intro { padding-bottom: 90px; }
  .about-intro blockquote { font-size: 29px; }
  .philosophy-grid { grid-template-columns: 1fr; }
  .career-detail article { grid-template-columns: 30px 1fr; }
  .career-detail article > div, .career-detail ul { grid-column: 2; }
  .career-detail ul { grid-template-columns: 1fr; }
  .cert-card { width: 170px; }
  .worklog-grid .post-featured { min-height: 450px; }
  .worklog-grid .post-featured h3 { font-size: 37px; }
  .process-map { grid-template-columns: 1fr; }
  .process-detail article { grid-template-columns: 1fr; padding: 44px 22px; margin-bottom: 18px; }
  .process-detail ul { grid-column: auto; }
  .process-detail h2 { font-size: 43px; }
  .step-watermark { font-size: 90px; top: -6px; right: 14px; }
  .testimonial-track blockquote { flex-basis: 100%; width: 100%; min-height: 400px; }
  .contact-form-shell { padding: 26px 20px; }
  .article-head { grid-template-columns: 1fr; padding-top: 45px; }
  .article-social { display: none; }
  .article-hero-image { grid-column: auto; height: 360px; }
  .article-meta { margin-top: 40px; }
  .article-head h1 { font-size: 15vw; line-height: 1.01; }
  .article-title-block > p { font-size: 16px; }
  /* Previously had no mobile override at all — the only large lede-tier
     text left at its desktop size on small screens. Scaled down in line
     with the rest of this tier (.page-hero-grid > p: 28px → 21px). */
  .article-lead { font-size: 21px !important; }
  .article-body-card { padding: 28px 20px; }
  .article-body-card h2 { font-size: 34px; }
  .article-body-card section p { font-size: 15px; }
  .article-body-card blockquote { margin-block: 60px; padding: 28px; font-size: 23px; }
  .related-articles { grid-template-columns: 1fr; }
  .legal article { grid-template-columns: 40px 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
