@font-face {
  font-family: "Barlow Condensed";
  src: url("barlow-condensed.woff2") format("woff2");
  font-weight: 800;
  font-display: swap;
}

@font-face {
  font-family: Inter;
  src: url("inter.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #171615;
  --night: #171615;
  --panel: #23211f;
  --paper: #f6f2ea;
  --white: #fcf9f3;
  --accent: #e8692b;
  --light-muted: #c8c0b7;
  --dark-muted: #524b45;
  --light-rule: #d8d0c5;
  --dark-rule: #443e38;
  --gutter: clamp(20px, 5.5vw, 88px);
  --display: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --body: Inter, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 79px; }
body { margin: 0; background: var(--night); color: var(--white); font-family: var(--body); line-height: 1.6; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid currentColor; outline-offset: 4px; }
h1, h2, h3, p, ul, figure, dl, dd { margin: 0; }
section[id] { scroll-margin-top: 20px; }

.skip-link { position: absolute; z-index: 11; top: 12px; left: 12px; padding: 10px 16px; background: var(--paper); color: var(--ink); transform: translateY(-180%); }
.skip-link:focus { transform: none; }
.wrap { width: min(1240px, calc(100% - 2 * var(--gutter))); margin-inline: auto; }
.section { padding-block: clamp(64px, 8vw, 116px); }
.light { background: var(--paper); color: var(--ink); }
.eyebrow { font-size: .73rem; font-weight: 700; letter-spacing: .13em; line-height: 1.4; text-transform: uppercase; }
.hero .eyebrow, .work .eyebrow { color: var(--accent); }
.title { font-family: var(--display); font-size: clamp(3rem, 6.2vw, 5.9rem); font-weight: 800; line-height: .9; letter-spacing: -.018em; }
.subhead { max-width: 33rem; color: var(--dark-muted); font-size: clamp(1rem, 1.6vw, 1.15rem); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .95rem;
  width: fit-content;
  min-height: 52px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: var(--accent);
  color: var(--ink);
  font-size: .91rem;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}
.button:hover { border-color: var(--ink); }
.button:focus-visible { outline-color: var(--white); }
.light .button:focus-visible, .offer .button:focus-visible { outline-color: var(--ink); }
.arrow { position: relative; display: inline-block; flex: 0 0 15px; width: 15px; height: 15px; }
.arrow::before { content: ""; position: absolute; top: 7px; left: 2px; width: 11px; height: 1.5px; background: currentColor; }
.arrow::after { content: ""; position: absolute; top: 4.5px; left: 7px; width: 5px; height: 5px; border-top: 1.5px solid; border-right: 1.5px solid; transform: rotate(45deg); }
.arrow-up { transform: rotate(-45deg); }
.arrow-down { transform: rotate(90deg); }
.button-quiet { background: transparent; border-color: var(--dark-rule); color: var(--white); }
.button-quiet:hover { background: var(--panel); border-color: var(--light-muted); }
.button-dark { background: var(--night); color: var(--white); }
.button-dark:hover { background: var(--accent); color: var(--ink); border-color: var(--ink); }
.link { display: inline-flex; align-items: center; gap: .6rem; width: fit-content; padding-block: 7px; font-size: .9rem; font-weight: 700; text-underline-offset: .28em; }
.link:hover { text-decoration-thickness: 2px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--dark-rule);
  background: var(--night);
}
.header-inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 26px; }
.logo { display: inline-flex; align-items: center; }
.logo img { width: 134px; height: auto; }
.main-nav { display: flex; align-items: center; gap: clamp(20px, 3.1vw, 44px); }
.main-nav a { color: var(--light-muted); font-size: .9rem; font-weight: 600; text-decoration: none; }
.main-nav a:hover { color: var(--white); text-decoration: underline; text-underline-offset: 6px; }
.header-contact { min-height: 42px; padding: 9px 15px; }

.hero { padding-block: clamp(51px, 6vw, 87px) clamp(56px, 6.7vw, 96px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: clamp(28px, 5.2vw, 80px); align-items: center; }
.hero h1 {
  margin-block: 20px 24px;
  font-family: var(--display);
  font-size: clamp(4.3rem, 8.2vw, 8.35rem);
  font-weight: 800;
  letter-spacing: -.028em;
  line-height: .83;
}
.hero h1 span { display: block; }
.hero h1 span + span { margin-top: .075em; color: var(--accent); }
.hero-copy { max-width: 34rem; color: var(--light-muted); font-size: clamp(1rem, 1.55vw, 1.2rem); line-height: 1.62; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 27px; }
.portrait {
  position: relative;
  isolation: isolate;
  margin: 0 9px 9px 0;
  background: var(--panel);
  border: 1px solid #5c544c;
  border-radius: 10px;
  aspect-ratio: 1.08;
}
.portrait::before {
  position: absolute;
  z-index: -1;
  content: "";
  inset: 10px -10px -10px 10px;
  border: 1px solid var(--accent);
  border-radius: inherit;
}
.portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 44%; border-radius: inherit; }
.portrait::after { position: absolute; content: ""; inset: 0; border-radius: inherit; background: linear-gradient(180deg, transparent 51%, rgb(12 11 10 / 84%) 100%); pointer-events: none; }
.portrait figcaption { position: absolute; z-index: 1; right: 24px; bottom: 23px; left: 24px; display: flex; align-items: end; justify-content: space-between; gap: 12px; }
.portrait-name { display: block; font-weight: 700; line-height: 1.4; }
.portrait-role { display: block; color: #ede4dc; font-size: .8rem; }
.portrait-mark { align-self: center; width: 28px; height: 28px; border-top: 2px solid var(--accent); border-right: 2px solid var(--accent); }

.clients { border-top: 1px solid var(--dark-rule); border-bottom: 1px solid var(--dark-rule); padding-block: 20px 25px; }
.clients-inner { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: clamp(22px, 4vw, 58px); }
.clients .eyebrow { color: var(--light-muted); letter-spacing: .1em; max-width: 13ch; }
.clients ul { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; padding: 0; list-style: none; }
.clients li { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-size: clamp(1.13rem, 2.2vw, 1.64rem); font-weight: 800; line-height: 1.05; }
.clients li::before { content: ""; width: 5px; height: 5px; flex: 0 0 5px; background: var(--accent); border-radius: 50%; }

.section-intro { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: end; gap: 20px 54px; margin-bottom: clamp(32px, 4vw, 58px); }
.section-intro .eyebrow { margin-bottom: 12px; }
.section-intro .subhead { padding-bottom: 2px; }
.service-list, .steps { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 0; border-top: 1px solid var(--light-rule); border-bottom: 1px solid var(--light-rule); }
.service-list > li, .steps > li { padding: 27px clamp(16px, 2.8vw, 42px) 29px; }
.service-list > li:first-child, .steps > li:first-child { padding-left: 0; }
.service-list > li:last-child, .steps > li:last-child { padding-right: 0; }
.service-list > li + li, .steps > li + li { border-left: 1px solid var(--light-rule); }
.service-mark { display: block; width: 29px; height: 4px; margin-bottom: 14px; border-radius: 4px; background: var(--accent); }
.service-list h3, .steps h3 { font-family: var(--display); font-size: clamp(1.8rem, 3.2vw, 2.55rem); font-weight: 800; line-height: 1; margin-bottom: 10px; }
.service-list p, .steps p { color: var(--dark-muted); font-size: .94rem; }

.work { background: var(--night); }
.work .subhead { color: var(--light-muted); }
.cases { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); }
.case { overflow: hidden; background: var(--panel); border: 1px solid var(--dark-rule); border-radius: 9px; }
.case-image { width: 100%; height: auto; aspect-ratio: 1.68; object-fit: cover; border-bottom: 1px solid var(--dark-rule); }
.case-text { padding: clamp(16px, 2vw, 26px); }
.case-text h3 { font-family: var(--display); font-size: clamp(1.8rem, 3vw, 2.65rem); font-weight: 800; line-height: .98; margin-block: 8px 12px; }
.case-text p:last-child { color: var(--light-muted); font-size: .9rem; }
.metric { display: grid; grid-template-columns: auto 1fr auto; gap: 16px clamp(22px, 3vw, 46px); align-items: center; margin-top: 24px; padding: 22px clamp(18px, 2.4vw, 35px); border: 1px solid var(--dark-rule); border-radius: 9px; }
.metric strong { color: var(--accent); font: 800 clamp(3.5rem, 6vw, 5.7rem)/.82 var(--display); letter-spacing: -.018em; }
.metric p { color: var(--light-muted); font-size: .88rem; }
.metric b { display: block; color: var(--white); font-size: .98rem; }

.offer { background: var(--accent); color: var(--ink); padding-block: clamp(54px, 7vw, 99px); }
.offer-grid { display: grid; grid-template-columns: minmax(0, 1.22fr) minmax(0, .78fr); gap: 28px clamp(30px, 7vw, 105px); align-items: center; }
.offer .title { margin-block: 12px 17px; }
.offer p:not(.eyebrow) { max-width: 34rem; }
.offer-list { margin: 0 0 19px; padding: 0; list-style: none; border-top: 1px solid var(--ink); }
.offer-list li { display: flex; gap: 11px; padding: 10px 0; border-bottom: 1px solid var(--ink); font-weight: 600; }
.offer-list li::before { content: ""; flex: 0 0 6px; height: 10px; margin: 5px 3px 0; border-right: 2px solid; border-bottom: 2px solid; transform: rotate(45deg); }

.process .title { font-size: clamp(3rem, 5.3vw, 5rem); }
.process .section-intro { margin-bottom: 26px; }
.steps > li { padding-block: 20px; }
.steps h3 { font-size: clamp(1.6rem, 2.5vw, 2rem); }
.step-number { display: block; width: fit-content; padding-inline: 5px; border-radius: 3px; background: var(--night); color: var(--accent); font-size: .78rem; font-weight: 700; margin-bottom: 7px; }

.contact { border-top: 1px solid var(--dark-rule); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.24fr) minmax(0, .76fr); align-items: center; gap: 28px clamp(25px, 7vw, 105px); }
.contact .eyebrow { color: var(--accent); margin-bottom: 12px; }
.contact .title { font-size: clamp(3.4rem, 6.4vw, 6.15rem); }
.contact-card { border-top: 1px solid var(--dark-rule); padding-top: 19px; }
.contact-card > p { color: var(--light-muted); margin-bottom: 18px; }
.contact-card .button { margin-bottom: 12px; }
.contact-lines { display: flex; align-items: flex-start; flex-direction: column; gap: 5px; }
.contact-lines a { color: var(--light-muted); font-size: .87rem; text-underline-offset: .23em; overflow-wrap: anywhere; }
.contact-lines a:hover { color: var(--white); }

.site-footer { border-top: 1px solid var(--dark-rule); padding-block: 24px 29px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 17px 25px; flex-wrap: wrap; }
.footer-brand { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; color: var(--light-muted); font-size: .8rem; }
.site-footer .logo img { width: 96px; }
.footer-links { display: flex; gap: 11px 19px; flex-wrap: wrap; }
.footer-links a { color: var(--light-muted); font-size: .8rem; text-underline-offset: .23em; }
.footer-links a:hover { color: var(--white); }

@media (max-width: 1080px) {
  .hero h1 { font-size: clamp(4rem, 8.9vw, 6.25rem); }
  .metric { grid-template-columns: auto 1fr; }
  .metric .link { grid-column: 2; }
}

@media (max-width: 760px) {
  html { scroll-padding-top: 110px; }
  .header-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 12px;
    row-gap: 0;
  }
  .header-inner > .logo { grid-column: 1; grid-row: 1; min-height: 64px; }
  .logo img { width: 112px; }
  .header-contact { grid-column: 2; grid-row: 1; min-height: 39px; }
  .main-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: space-between;
    gap: clamp(8px, 3vw, 20px);
    border-top: 1px solid var(--dark-rule);
  }
  .main-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    font-size: .86rem;
    line-height: 1.25;
  }
  .hero-grid, .section-intro, .offer-grid, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .hero { padding-block: 43px 52px; }
  .hero h1 { font-size: clamp(3.65rem, 12vw, 6.2rem); }
  .hero-actions { margin-top: 22px; }
  .portrait { margin-right: 8px; aspect-ratio: 1.23; max-width: 560px; }
  .portrait img { object-position: 50% 39%; }
  .portrait figcaption { inset: auto 16px 14px; }
  .clients-inner { grid-template-columns: 1fr; gap: 11px; }
  .clients .eyebrow { max-width: none; }
  .clients ul { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px 12px; }
  .service-list, .steps { grid-template-columns: minmax(0, 1fr); }
  .service-list > li, .steps > li { padding-inline: 0; }
  .service-list > li + li, .steps > li + li { border-top: 1px solid var(--light-rule); border-left: 0; }
  .cases { grid-template-columns: minmax(0, 1fr); }
  .case-image { aspect-ratio: 1.8; }
  .metric { grid-template-columns: minmax(0, 1fr); }
  .metric .link { grid-column: 1; }
}

@media (max-width: 370px) {
  .hero h1 { font-size: clamp(2.85rem, 12vw, 3.65rem); }
  .hero-actions .button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; }
}

.subpage { min-height: 61vh; padding-block: clamp(38px, 5.85vw, 82px); }
.subpage .eyebrow { color: var(--accent); margin-bottom: 13px; }
.subpage .title { max-width: 14ch; margin-bottom: 20px; font-size: clamp(3.35rem, 7.2vw, 6.6rem); overflow-wrap: anywhere; }
.subpage-intro { max-width: 43rem; color: var(--light-muted); font-size: 1.07rem; }
.subpage-copy { max-width: 49rem; overflow-wrap: anywhere; }
.subpage-copy h2 { margin-block: 26px 7px; font-family: var(--display); font-size: 2rem; font-weight: 800; line-height: 1.1; }
.subpage-copy p + p { margin-top: 13px; }
.subpage-copy address { font-style: normal; }
.subpage-copy a, .project-reference a { text-underline-offset: .21em; overflow-wrap: anywhere; }
.subpage-copy a:hover, .project-reference a:hover { color: var(--accent); }
.subpage-copy .button { margin-top: 22px; }

.inquiry-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: clamp(24px, 6vw, 90px); align-items: start; }
.inquiry-links { margin-top: 25px; padding-top: 16px; border-top: 1px solid var(--dark-rule); }
.inquiry-links a { font-size: .98rem; }
.inquiry-form { border: 1px solid var(--dark-rule); border-radius: 10px; background: var(--panel); padding: clamp(17px, 3vw, 34px); color-scheme: dark; }
.inquiry-form label { display: block; margin-bottom: 6px; font-size: .88rem; font-weight: 700; }
.inquiry-form input, .inquiry-form textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #74685c;
  border-radius: 6px;
  background: var(--night);
  color: var(--white);
  font: inherit;
}
.inquiry-form textarea { min-height: 135px; resize: vertical; }
.inquiry-field + .inquiry-field { margin-top: 13px; }
.inquiry-form .button { margin-top: 18px; cursor: pointer; font-family: var(--body); }
.inquiry-privacy { margin-top: 12px; color: var(--light-muted); font-size: .82rem; }
.inquiry-privacy a { text-underline-offset: .22em; }
.notice { margin-bottom: 17px; padding: 12px; border: 1px solid; border-radius: 6px; }
.notice-error { color: var(--white); background: var(--panel); border-color: var(--accent); }
.notice-sent { color: #e4f3d8; background: #202d20; }

.project-reference { margin-top: 32px; max-width: 52rem; }
.project-reference article { padding-block: 18px; border-top: 1px solid var(--dark-rule); }
.project-reference h2 { font-family: var(--display); font-size: clamp(1.95rem, 4vw, 2.65rem); font-weight: 800; line-height: 1; margin-bottom: 9px; }
.project-reference p { color: var(--light-muted); }
.project-reference .link { margin-top: 3px; }
.project-reference .feature { margin-bottom: 10px; padding: 23px; border: 1px solid var(--dark-rule); border-radius: 8px; background: var(--panel); }

@media (max-width: 760px) {
  .inquiry-layout { grid-template-columns: minmax(0, 1fr); }
  .subpage .title { max-width: 100%; }
  .subpage-intro { font-size: 1rem; }
}

/* Main headings on subpages fit the available line while preserving their text. */
.subpage h1.title[data-single-line] { max-width: none; }
h1[data-single-line][data-title-fitted] {
  white-space: nowrap;
  overflow-wrap: normal;
  overflow-x: clip;
}
h1[data-single-line] > span { display: inline-block; }
