:root {
  --bg: #ffffff;
  --soft: #f7f7f8;
  --ink: #0a0a0a;
  --muted: #5a5a5a;
  --line: #0a0a0a;
  --hairline: rgba(10, 10, 10, 0.22);
  --accent: #ff4f00;
  --max: 1120px;
}

* {
  box-sizing: border-box;
  min-width: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: "Helvetica Neue", Helvetica, Arial, system-ui, -apple-system, sans-serif;
  line-height: 1.45;
  letter-spacing: 0;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button,
.button {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  min-height: 64px;
  padding: 0 18px;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
}

.brand {
  font-size: 16px;
  font-weight: 700;
}

.menu-button {
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  padding: 10px;
  color: var(--ink);
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
}

.menu-button span {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--ink);
}

.menu-button:focus-visible,
.button:focus-visible,
.case-toggle:focus-visible,
.site-nav a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.site-nav {
  position: fixed;
  inset: 64px 0 auto 0;
  display: none;
  padding: 18px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.site-nav.is-open {
  display: grid;
}

.site-nav a {
  padding: 16px 0;
  font-size: 28px;
  font-weight: 700;
  border-bottom: 1px solid var(--hairline);
}

.site-nav a[aria-current="page"] {
  color: var(--accent);
}

main {
  width: calc(100% - 36px);
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px 0;
}

.section-frame,
.page-hero,
.content-band,
.preview-card,
.case-card,
.example-card,
.profile-card,
.timeline-list article,
.info-columns article,
.cta-panel,
.site-footer {
  width: 100%;
  max-width: 100%;
  border: 1px solid var(--line);
}

.hero {
  display: grid;
  gap: 28px;
  padding: 22px;
}

.hero-copy {
  min-width: 0;
}

.hero h1,
.page-hero h1 {
  margin: 16px 0 0;
  font-size: clamp(42px, 13.5vw, 86px);
  line-height: 0.94;
  letter-spacing: 0;
  overflow-wrap: break-word;
}

.page-hero h1 {
  font-size: clamp(38px, 10.5vw, 76px);
}

.label {
  margin: 0;
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
}

.lead {
  margin: 24px 0 0;
  max-width: 720px;
  font-size: clamp(20px, 5vw, 30px);
  line-height: 1.15;
  font-weight: 700;
  overflow-wrap: break-word;
}

p {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 16px;
  overflow-wrap: break-word;
}

.actions {
  display: grid;
  gap: 10px;
  margin-top: 26px;
}

.hero-actions {
  margin-top: 0;
}

.quick-contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: stretch;
  margin-top: 24px;
}

.quick-call {
  min-height: 50px;
}

.quick-socials {
  display: flex;
  gap: 8px;
}

.quick-socials a {
  display: grid;
  width: 50px;
  min-width: 50px;
  height: 50px;
  place-items: center;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
}

.quick-socials svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.quick-socials a:hover,
.quick-socials a:focus-visible {
  color: #fff;
  background: var(--accent);
  outline: none;
}

.button {
  width: 100%;
  max-width: 100%;
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 18px;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  font-weight: 700;
  overflow-wrap: break-word;
}

.button::after {
  content: "\2192";
  color: var(--ink);
  flex: 0 0 auto;
}

.button.primary {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}

.button.primary::after {
  color: #fff;
}

.portrait-card {
  margin: 0;
  border: 1px solid var(--line);
  overflow: hidden;
  background: var(--soft);
}

.portrait-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 18%;
  filter: grayscale(1) contrast(1.05);
}

@media (max-width: 759px) {
  .hero {
    position: relative;
    display: grid;
    gap: 18px;
  }

  .hero-copy {
    display: contents;
  }

  .hero-copy .label {
    grid-row: 1;
  }

  .hero h1 {
    grid-row: 2;
    margin-top: 0;
    padding-right: 0;
    font-size: clamp(46px, 12.8vw, 50px);
    overflow-wrap: normal;
  }

  .hero .lead {
    grid-row: 4;
    margin-top: 0;
    padding-right: 0;
  }

  .hero-copy > p:not(.label):not(.lead) {
    grid-row: 5;
    margin-top: 0;
    padding-right: 0;
  }

  .quick-contact {
    grid-row: 6;
    margin-top: 0;
  }

  .page-hero h1,
  .compact-hero h2 {
    overflow-wrap: normal;
  }

  .hero-actions {
    grid-row: 7;
    margin-top: 0;
  }

  .portrait-card {
    position: static;
    z-index: 1;
    grid-row: 3;
    width: min(208px, 62vw);
    justify-self: end;
  }

  .portrait-card img {
    aspect-ratio: 1 / 1.16;
    object-position: 50% 15%;
  }

  .example-grid-compact {
    grid-template-columns: 1fr;
  }
}

.metrics-grid {
  width: 100%;
  max-width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 18px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.metrics-grid article {
  min-height: 132px;
  padding: 18px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.metrics-grid strong {
  display: block;
  color: var(--accent);
  font-size: clamp(34px, 9vw, 48px);
  line-height: 1;
  white-space: nowrap;
}

.metrics-grid strong small {
  font-size: 0.46em;
  vertical-align: 0.12em;
}

.metrics-grid span {
  display: block;
  margin-top: 10px;
  color: var(--ink);
  font-size: 14px;
}

.content-band,
.preview-list,
.case-stack,
.profile-grid,
.timeline-list,
.info-columns,
.cta-panel {
  margin-top: 18px;
}

.content-band,
.cta-panel {
  padding: 22px;
}

.section-heading h2,
.cta-panel h2,
.profile-card h2,
.info-columns h2 {
  margin: 10px 0 0;
  font-size: clamp(28px, 8vw, 54px);
  line-height: 1;
  overflow-wrap: break-word;
}

.check-list {
  display: grid;
  gap: 0;
  margin-top: 24px;
  border-top: 1px solid var(--hairline);
}

.check-list p {
  position: relative;
  margin: 0;
  padding: 16px 0 16px 24px;
  color: var(--ink);
  border-bottom: 1px solid var(--hairline);
}

.check-list p::before {
  content: "";
  position: absolute;
  left: 0;
  top: 24px;
  width: 8px;
  height: 8px;
  background: var(--accent);
}

.preview-list {
  display: grid;
  gap: 12px;
}

.preview-list .section-heading {
  padding: 4px 0 10px;
}

.preview-card {
  display: grid;
  gap: 12px;
  padding: 18px;
  background: var(--bg);
}

.preview-card span,
.case-number,
.process span {
  color: var(--accent);
  font-size: 46px;
  line-height: 1;
  font-weight: 700;
}

.preview-card h3,
.case-card h2,
.process h2,
.timeline-list h3 {
  margin: 0;
  font-size: 23px;
  line-height: 1.08;
  overflow-wrap: break-word;
}

.preview-card p,
.case-card p,
.process p,
.timeline-list p {
  margin-top: 0;
}

.preview-card a {
  width: fit-content;
  margin-top: 4px;
  color: var(--accent);
  font-weight: 700;
}

.preview-card a::after {
  content: " \2192";
}

.page-hero,
.content-band,
.site-footer {
  position: relative;
}

.page-hero {
  padding: 22px;
}

.page-hero > *,
.content-band > *,
.site-footer > * {
  position: relative;
  z-index: 1;
}

.image-backdrop {
  overflow: hidden;
}

.image-backdrop::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--backdrop-image) center / cover no-repeat;
  opacity: var(--backdrop-opacity, 0.36);
}

.image-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(255, 255, 255, 0.52);
}

.backdrop-ld-cycle {
  --backdrop-image: url("assets/images/bg-ld-cycle.png");
  --backdrop-opacity: 0.42;
}

.backdrop-liquid-flow {
  --backdrop-image: url("assets/images/bg-liquid-flow.png");
  --backdrop-opacity: 0.42;
}

.backdrop-experience {
  --backdrop-image: url("assets/images/bg-experience-contact.png");
  --backdrop-opacity: 0.38;
}

.page-hero-action {
  display: grid;
  gap: 22px;
}

.page-hero p:last-child {
  max-width: 760px;
  font-size: 18px;
}

.hero-side-button {
  align-self: end;
}

.case-stack {
  display: grid;
  gap: 12px;
}

.case-card {
  padding: 18px;
}

.case-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: start;
}

.result-strip {
  margin-top: 18px;
  padding: 12px;
  color: var(--accent);
  border: 1px solid var(--accent);
  font-weight: 700;
  overflow-wrap: break-word;
}

.case-toggle {
  width: 100%;
  min-height: 48px;
  margin-top: 12px;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  font-weight: 700;
  cursor: pointer;
}

.case-details {
  display: none;
  margin-top: 18px;
}

.case-card.is-open .case-details {
  display: block;
}

dl {
  display: grid;
  gap: 0;
  margin: 0;
  border-top: 1px solid var(--hairline);
}

dl div {
  padding: 14px 0;
  border-bottom: 1px solid var(--hairline);
}

dt {
  color: var(--accent);
  font-weight: 700;
}

dd {
  margin: 6px 0 0;
  color: var(--muted);
}

.process {
  position: relative;
  display: grid;
  gap: 0;
  margin-top: 18px;
  padding-left: 18px;
}

.process::before {
  content: "";
  position: absolute;
  top: 16px;
  bottom: 16px;
  left: 41px;
  width: 1px;
  background: var(--accent);
}

.process article {
  position: relative;
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 18px;
  padding: 18px 0;
}

.process article > div {
  display: grid;
  align-content: start;
}

.process span {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  color: #fff;
  background: var(--accent);
  border-radius: 50%;
  font-size: 20px;
  z-index: 1;
}

.tool-grid,
.contact-list {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.tool-grid p,
.contact-list span,
.contact-list a,
.contact-action {
  display: block;
  margin: 0;
  padding: 16px;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--hairline);
  font: inherit;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.contact-action::after {
  content: " \2192";
  color: var(--accent);
}

.example-grid {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.compact-hero {
  margin-top: 18px;
}

.compact-hero h2 {
  margin: 10px 0 0;
  font-size: clamp(38px, 8vw, 70px);
  line-height: 0.98;
}

.compact-hero-button {
  width: fit-content;
  margin-top: 20px;
}

.example-card {
  padding: 18px;
}

.example-media {
  position: relative;
  display: grid;
  min-height: 190px;
  place-items: center;
  margin-bottom: 18px;
  border: 1px solid var(--hairline);
  overflow: hidden;
  background: var(--soft);
}

.example-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.95) contrast(1.02);
}

.example-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.16);
}

.example-media span {
  position: relative;
  z-index: 1;
  color: var(--accent);
  font-size: clamp(52px, 8vw, 72px);
  font-weight: 700;
  text-shadow: 0 1px 0 #fff;
}

.example-card h2 {
  margin: 0;
  font-size: 28px;
  line-height: 1.08;
}

.ai-case-note,
.asset-gallery,
.video-case {
  margin-top: 18px;
  padding: 22px;
  border: 1px solid var(--line);
}

.ai-case-note h2,
.asset-gallery h2,
.video-case h2 {
  margin: 10px 0 0;
  font-size: clamp(30px, 7vw, 54px);
  line-height: 1;
}

.gallery-grid {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.gallery-item {
  position: relative;
  display: block;
  width: 100%;
  min-height: 260px;
  padding: 0;
  overflow: hidden;
  background: var(--soft);
  border: 1px solid var(--line);
  cursor: zoom-in;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  filter: saturate(0.96) contrast(1.03);
}

.gallery-item span {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  padding: 8px 10px;
  color: #fff;
  background: var(--accent);
  font-weight: 700;
  text-align: left;
}

.video-case {
  display: grid;
  gap: 22px;
}

.video-case video {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--ink);
}

.lightbox {
  width: min(1120px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  padding: 0;
  border: 1px solid var(--line);
  background: var(--bg);
}

.lightbox::backdrop {
  background: rgba(0, 0, 0, 0.72);
}

.lightbox img {
  width: 100%;
  max-height: calc(100vh - 82px);
  object-fit: contain;
  background: var(--ink);
}

.lightbox-close {
  width: 100%;
  min-height: 50px;
  color: var(--ink);
  background: var(--bg);
  border: 0;
  border-bottom: 1px solid var(--line);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.example-grid-compact .example-media {
  min-height: 150px;
}

.example-grid-compact .example-card h2 {
  font-size: 23px;
}

.profile-grid,
.info-columns {
  display: grid;
  gap: 12px;
}

.profile-card,
.info-columns article {
  padding: 20px;
}

.certificate-card {
  position: relative;
  display: block;
  width: 100%;
  margin-top: 18px;
  padding: 0;
  overflow: hidden;
  background: var(--soft);
  border: 1px solid var(--line);
  cursor: zoom-in;
}

.certificate-card img {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  object-position: top center;
}

.certificate-card span {
  display: block;
  padding: 12px;
  color: var(--ink);
  background: var(--bg);
  border-top: 1px solid var(--line);
  font-weight: 700;
  text-align: left;
}

.info-columns h2 {
  font-size: 34px;
  line-height: 1.05;
}

.timeline-list {
  display: grid;
  gap: 12px;
}

.timeline-list .section-heading {
  padding: 8px 0;
}

.timeline-list article {
  position: relative;
  padding: 20px 20px 20px 34px;
}

.timeline-list article::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 24px;
  bottom: 24px;
  width: 1px;
  background: var(--accent);
}

.timeline-list article::after {
  content: "";
  position: absolute;
  left: 12px;
  top: 26px;
  width: 9px;
  height: 9px;
  background: var(--accent);
  border-radius: 50%;
}

.timeline-list span {
  display: block;
  margin-bottom: 10px;
  color: var(--accent);
  font-weight: 700;
}

.back-home {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  padding: 0 14px;
  margin-bottom: 18px;
  color: var(--ink);
  border: 1px solid var(--line);
  font-weight: 700;
}

.back-home::before {
  content: "\2190";
  margin-right: 10px;
  color: var(--accent);
}

.site-footer {
  display: grid;
  gap: 18px;
  width: calc(100% - 36px);
  max-width: var(--max);
  margin: 0 auto 28px;
  padding: 22px;
}

.site-footer h2 {
  margin: 8px 0 0;
  font-size: clamp(28px, 8vw, 46px);
  line-height: 1;
}

.footer-links {
  display: grid;
  gap: 10px;
}

.footer-links a {
  display: flex;
  min-height: 50px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 16px;
  border: 1px solid var(--hairline);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.footer-links a[href^="tel:"] {
  white-space: nowrap;
}

.footer-links a::after {
  content: "\2192";
  color: var(--accent);
  flex: 0 0 auto;
}

@media (min-width: 760px) {
  .site-header {
    grid-template-columns: auto 1fr;
    gap: 28px;
    min-height: 72px;
    padding: 0 32px;
  }

  .menu-button {
    display: none;
  }

  .site-nav,
  .site-nav.is-open {
    position: static;
    display: flex;
    justify-content: flex-end;
    gap: 24px;
    padding: 0;
    border: 0;
  }

  .site-nav a {
    padding: 0;
    font-size: 15px;
    border: 0;
  }

  main {
    width: 100%;
    padding: 28px 32px 56px;
  }

  .site-footer {
    grid-template-columns: 1fr;
    gap: 24px;
    width: calc(100% - 64px);
    padding: 32px;
  }

  .footer-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero {
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.78fr);
    align-items: stretch;
    padding: 32px;
  }

  .hero-copy {
    display: block;
  }

  .hero-actions {
    grid-column: 1 / -1;
  }

  .actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .actions.vertical {
    grid-template-columns: 1fr;
  }

  .metrics-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .content-band,
  .cta-panel {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 42px;
    align-items: start;
    padding: 32px;
  }

  .preview-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .preview-list .section-heading {
    grid-column: 1 / -1;
  }

  .page-hero {
    padding: 32px;
  }

  .page-hero-action {
    grid-template-columns: minmax(0, 1fr) 280px;
    align-items: end;
  }

  .case-card {
    padding: 24px;
  }

  .case-head {
    grid-template-columns: 76px 1fr;
  }

  .process {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 20px;
    padding-left: 0;
  }

  .process::before {
    top: 42px;
    bottom: auto;
    left: 40px;
    right: 40px;
    width: auto;
    height: 1px;
  }

  .process article {
    grid-template-columns: 1fr;
    grid-template-rows: 48px auto;
    gap: 22px;
    align-items: start;
  }

  .process article > div {
    min-height: 180px;
    grid-template-rows: auto 1fr;
  }

  .process h2 {
    min-height: 56px;
  }

  .tool-grid,
  .profile-grid,
  .info-columns {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .example-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-item.tall {
    min-height: 620px;
  }

  .gallery-item.wide {
    min-height: 360px;
  }

  .video-case {
    grid-template-columns: 0.72fr 1.28fr;
    align-items: start;
    padding: 32px;
  }

  .info-columns h2 {
    font-size: 36px;
  }

  .profile-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .timeline-list article {
    padding-left: 52px;
  }

  .timeline-list article::before {
    left: 26px;
  }

  .timeline-list article::after {
    left: 22px;
  }
}

@media (min-width: 1120px) {
  .metrics-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .case-stack {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .case-card:first-child {
    grid-column: 1 / -1;
  }
}
