:root {
  --ink: #0b0c0e;
  --surface: #131519;
  --surface-2: #191c21;
  --white: #f7f7f5;
  --muted: #a2a7ae;
  --dim: #767b84;
  --yellow: #f0bd3d;
  --green: #6bd1a0;
  --line: rgba(255, 255, 255, .09);
  --line-strong: rgba(255, 255, 255, .17);
  --radius: 14px;
  --shell: min(1180px, calc(100% - 56px));
  --sans: Inter, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: "IBM Plex Mono", Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--ink); scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--ink);
  color: var(--white);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body.dialog-open { overflow: hidden; }
::selection { background: var(--yellow); color: var(--ink); }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; }
.shell { width: var(--shell); margin-inline: auto; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 9px 14px;
  transform: translateY(-150%);
  border-radius: 8px;
  background: var(--yellow);
  color: var(--ink);
  font-weight: 700;
}
.skip-link:focus { transform: translateY(0); }

/* Header — a thin nameplate, not a marketing bar. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  background: rgba(11, 12, 14, .82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: border-color 200ms ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 66px;
}
.brand { font-size: .88rem; font-weight: 650; letter-spacing: -.01em; }
.primary-nav { display: flex; gap: 24px; }
.primary-nav a {
  color: var(--muted);
  font-size: .8rem;
  transition: color 160ms ease;
}
.primary-nav a:hover { color: var(--white); }

/* Intro — compact, no full-screen hero. */
.intro { padding: clamp(56px, 8vw, 96px) 0 clamp(40px, 5vw, 60px); }
.intro-inner { max-width: 660px; }
.intro h1 {
  margin: 0;
  font-size: clamp(2.1rem, 4.6vw, 3rem);
  font-weight: 620;
  letter-spacing: -.035em;
  line-height: 1.05;
}
.intro-role {
  margin: 10px 0 0;
  color: var(--yellow);
  font-family: var(--mono);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.intro-summary {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
}
.intro-links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 28px 0 0; }
.intro-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 15px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, .04);
  color: var(--white);
  font-size: .82rem;
  font-weight: 600;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease, transform 160ms ease;
}
.intro-links a svg { flex: 0 0 auto; opacity: .8; }
.intro-links a:hover { border-color: var(--yellow); background: rgba(240, 189, 61, .09); color: var(--yellow); transform: translateY(-1px); }
.intro-links a:hover svg { opacity: 1; }

/* Work — the point of the page. */
.work { padding-bottom: clamp(72px, 9vw, 110px); }
.work-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.work-head h2 { margin: 0; font-size: 1.05rem; font-weight: 620; letter-spacing: -.02em; }
.work-head span {
  color: var(--dim);
  font-family: var(--mono);
  font-size: .62rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.project {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 200ms ease, transform 200ms ease;
}
.project:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.project-shot { position: relative; display: block; background: #0e1014; }
.project-shot img {
  width: 100%;
  height: auto;
  aspect-ratio: 1.6;
  object-fit: cover;
  object-position: top;
  transition: opacity 200ms ease;
}
.project:hover .project-shot img { opacity: .88; }
.project-info { display: flex; flex-direction: column; flex: 1; padding: 15px 16px; }
.project-info h3 { margin: 0; font-size: .95rem; font-weight: 620; letter-spacing: -.02em; }
.project-info h3 a:hover { color: var(--yellow); }
.project-meta {
  margin: 7px 0 0;
  color: var(--dim);
  font-family: var(--mono);
  font-size: .6rem;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.project-description {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.project-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: auto;
  padding-top: 13px;
}
.project-actions a, .project-case {
  padding: 0 0 3px;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  background: transparent;
  color: var(--white);
  cursor: pointer;
  font-size: .76rem;
  font-weight: 600;
  transition: border-color 160ms ease, color 160ms ease;
}
.project-actions a:hover, .project-case:hover { border-color: var(--yellow); color: var(--yellow); }
.project-case { color: var(--yellow); }

/* Inline "opens in new tab" arrow — an SVG so it never renders as a
   platform emoji the way the ↗ character does on iOS. */
.i-arrow {
  width: .82em;
  height: .82em;
  margin-left: .28em;
  vertical-align: -.06em;
  flex: none;
}

/* Case study detail — real HTML for crawlers and no-JS visitors; the
   dialog takes over once JavaScript is available. */
.js .case-static { display: none; }
.no-js .project-case { display: none; }
.case-static { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.case-static h4 {
  margin: 0 0 6px;
  color: var(--yellow);
  font-family: var(--mono);
  font-size: .58rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.case-static h4 + p { margin: 0 0 14px; color: var(--muted); font-size: .78rem; line-height: 1.55; }
.case-static ul { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.case-static li {
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  font-size: .66rem;
}

/* About + Contact — supporting, deliberately understated. */
.about, .contact { padding-block: clamp(48px, 6vw, 72px); border-top: 1px solid var(--line); }
.about-inner, .contact-inner {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}
.about-inner h2, .contact-inner h2 {
  margin: 0;
  color: var(--dim);
  font-family: var(--mono);
  font-size: .65rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.about-body { display: grid; grid-template-columns: 264px minmax(0, 1fr); gap: 36px; align-items: start; max-width: 900px; }
.about-figure { margin: 0; }
.about-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid var(--line-strong);
  box-shadow: 0 22px 48px -22px rgba(0, 0, 0, .7);
}
.about-text { max-width: 620px; }
.about-body p { margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.7; }
.about-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}
.about-stack li {
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: .66rem;
}
.contact-direct { display: grid; max-width: 620px; border-top: 1px solid var(--line); }
.contact-direct a {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  transition: color 160ms ease;
}
.contact-direct span {
  color: var(--dim);
  font-family: var(--mono);
  font-size: .62rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.contact-direct strong { font-size: .84rem; font-weight: 550; overflow-wrap: anywhere; }
.contact-direct a:hover strong { color: var(--yellow); }

.site-footer { border-top: 1px solid var(--line); }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 26px;
  color: var(--dim);
  font-size: .76rem;
}
.footer-inner p { margin: 0; }
.footer-inner nav { display: flex; gap: 20px; }
.footer-inner a { transition: color 160ms ease; }
.footer-inner a:hover { color: var(--white); }

dialog { color: inherit; }
dialog::backdrop { background: rgba(0, 0, 0, .78); backdrop-filter: blur(6px); }
.case-dialog {
  width: min(980px, calc(100% - 32px));
  max-height: calc(100svh - 48px);
  padding: 0;
  overflow: auto;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: var(--surface);
  color: var(--white);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .5);
}
.dialog-shell { display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, .86fr); }
.dialog-close {
  position: absolute;
  z-index: 5;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: rgba(11, 12, 14, .84);
  color: var(--white);
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
}
.case-visual { min-height: 100%; overflow: hidden; background: #0e1014; }
.case-visual img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.case-content { padding: clamp(28px, 4vw, 44px); }
.case-content .section-index {
  margin: 0 0 12px;
  color: var(--yellow);
  font-family: var(--mono);
  font-size: .6rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.case-content h2 { margin: 0; font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 620; letter-spacing: -.035em; line-height: 1.1; }
.case-facts { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 24px; border-block: 1px solid var(--line); }
.case-facts div { display: grid; gap: 5px; padding: 13px 10px 13px 0; }
.case-facts div + div { padding-left: 10px; border-left: 1px solid var(--line); }
.case-facts span { color: var(--dim); font-family: var(--mono); font-size: .55rem; letter-spacing: .07em; text-transform: uppercase; }
.case-facts strong { font-size: .74rem; font-weight: 550; }
.case-story { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: 24px; }
.case-story h3, .case-services h3 {
  margin: 0 0 8px;
  color: var(--yellow);
  font-family: var(--mono);
  font-size: .58rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.case-story p { margin: 0; color: var(--muted); font-size: .8rem; line-height: 1.6; }
.case-services { margin: 24px 0; }
.case-services ul { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.case-services li { padding: 4px 8px; border: 1px solid var(--line); border-radius: 6px; color: var(--muted); font-size: .66rem; }
.case-content .button {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 9px;
  background: var(--yellow);
  color: var(--ink);
  font-size: .8rem;
  font-weight: 700;
  transition: background 160ms ease;
}
.case-content .button:hover { background: #ffd76e; }

.review-page-body { min-height: 100svh; }
.review-header { border-bottom: 1px solid var(--line); }
.review-header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 20px; }
.review-back { color: var(--muted); font-size: .76rem; transition: color 160ms ease; }
.review-back:hover { color: var(--white); }
.review-page { padding: clamp(58px, 9vw, 96px) 0; }
.review-page-inner { max-width: 620px; }
.review-kicker {
  margin: 0 0 11px;
  color: var(--yellow);
  font-family: var(--mono);
  font-size: .6rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.review-page h1 { margin: 0; font-size: clamp(2.5rem, 7vw, 4.6rem); font-weight: 620; letter-spacing: -.055em; line-height: .98; }
.review-intro { max-width: 520px; margin: 17px 0 30px; color: var(--muted); font-size: .88rem; line-height: 1.65; }
.review-form { display: grid; gap: 15px; }
.review-form > label {
  display: grid;
  gap: 7px;
  color: #d6d8dd;
  font-size: .7rem;
  font-weight: 600;
}
.review-form label > span { color: var(--dim); font-size: .62rem; font-weight: 450; }
.review-form input:not([type="radio"]):not([type="checkbox"]), .review-form textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: 0;
  background: #111319;
  color: var(--white);
  transition: border-color 160ms ease, background 160ms ease;
}
.review-form textarea { min-height: 128px; resize: vertical; }
.review-form input:focus, .review-form textarea:focus { border-color: var(--yellow); background: #14171d; }
.review-honeypot { position: absolute; left: -9999px; }
.rating-fieldset { margin: 0; padding: 0; border: 0; }
.rating-fieldset legend { margin-bottom: 7px; color: #d6d8dd; font-size: .7rem; font-weight: 600; }
.rating-options { display: grid; grid-template-columns: repeat(5, 1fr); gap: 7px; }
.rating-options label { position: relative; cursor: pointer; }
.rating-options input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.rating-options span {
  display: grid;
  place-items: center;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #111319;
  color: var(--muted);
  font-family: var(--mono);
  font-size: .7rem;
  transition: border-color 150ms ease, color 150ms ease, background 150ms ease;
}
.rating-options input:checked + span { border-color: var(--yellow); background: rgba(240, 189, 61, .08); color: var(--yellow); }
.rating-options input:focus-visible + span { outline: 2px solid var(--yellow); outline-offset: 3px; }
.review-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 46px;
  padding: 0 18px;
  border: 0;
  border-radius: 8px;
  background: var(--yellow);
  color: var(--ink);
  cursor: pointer;
  font-size: .78rem;
  font-weight: 700;
  transition: background 160ms ease, opacity 160ms ease;
}
.review-submit:hover { background: #ffd76e; }
.review-submit:disabled { cursor: wait; opacity: .65; }
.review-note, .review-status { margin: -4px 0 0; color: var(--dim); font-size: .67rem; line-height: 1.5; }
.review-status { padding: 10px 12px; border: 1px solid rgba(107, 209, 160, .28); border-radius: 8px; background: rgba(107, 209, 160, .06); color: #9bdfbd; }
.review-status.is-error { border-color: rgba(232, 124, 110, .3); background: rgba(232, 124, 110, .06); color: #f0a398; }

.moderation-review { display: grid; gap: 22px; padding: 24px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--surface); }
.moderation-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.moderation-meta div { display: grid; gap: 5px; }
.moderation-meta span, .moderation-state { color: var(--dim); font-size: .66rem; text-transform: uppercase; letter-spacing: .08em; }
.moderation-meta strong, .moderation-meta a { color: var(--white); font-size: .82rem; overflow-wrap: anywhere; }
.moderation-review blockquote { margin: 0; color: #e7e8eb; font-size: clamp(1rem, 2vw, 1.2rem); line-height: 1.65; }
.moderation-state { margin: 0; }
.moderation-state strong { color: var(--yellow); }
.moderation-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.review-reject { min-height: 44px; padding: 0 18px; border: 1px solid var(--line-strong); border-radius: 8px; background: transparent; color: var(--white); cursor: pointer; }
.review-reject:hover { border-color: #e87c6e; color: #f0a398; }
.review-reject:disabled { cursor: wait; opacity: .65; }

.reviews { padding-block: clamp(48px, 6vw, 72px); border-top: 1px solid var(--line); }
.reviews-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 25px; }
.reviews-head h2 { margin: 0; font-size: clamp(1.5rem, 3vw, 2.15rem); font-weight: 600; letter-spacing: -.04em; }
.reviews-head span { color: var(--dim); font-size: .65rem; text-transform: uppercase; letter-spacing: .08em; }
.reviews-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.client-review { display: grid; gap: 20px; min-height: 220px; padding: 24px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.client-review-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.client-review-stars { margin: 0; color: var(--yellow); font-size: .75rem; letter-spacing: .1em; }
.client-review-head span { color: var(--dim); font-size: .61rem; text-transform: uppercase; letter-spacing: .08em; }
.client-review blockquote { align-self: center; margin: 0; color: #e4e5e8; font-size: .92rem; line-height: 1.65; }
.client-review footer { display: grid; gap: 3px; align-self: end; }
.client-review footer strong { font-size: .78rem; }
.client-review footer span { color: var(--muted); font-size: .68rem; }

.js .reveal { opacity: 0; transform: translateY(12px); transition: opacity 460ms ease, transform 460ms cubic-bezier(.2, .75, .2, 1); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 1000px) {
  .about-inner, .contact-inner { grid-template-columns: 1fr; gap: 18px; }
  .about-body { grid-template-columns: 200px minmax(0, 1fr); gap: 24px; }
}

@media (max-width: 520px) {
  .about-body { grid-template-columns: 1fr; }
  .about-figure { max-width: 240px; }
}

@media (max-width: 640px) {
  :root { --shell: min(100% - 32px, 1180px); }
  .primary-nav { gap: 18px; }
  .primary-nav a { font-size: .76rem; }
  .intro { padding: 44px 0 34px; }
  .intro-links { gap: 10px; }
  .work-grid { grid-template-columns: 1fr; }
  .contact-direct a { display: grid; gap: 5px; }
  .review-header-inner { min-height: 58px; }
  .review-back { font-size: .7rem; }
  .review-page { padding-top: 48px; }
  .moderation-meta, .reviews-grid { grid-template-columns: 1fr; }
  .reviews-head { display: grid; gap: 6px; }
  .dialog-shell { grid-template-columns: 1fr; }
  .case-visual { max-height: 300px; }
  .case-facts { grid-template-columns: 1fr; }
  .case-facts div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .case-story { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
