:root {
  --bg: #eeeeec;
  --bg-soft: #f7f7f5;
  --surface: #fbfbf8;
  --surface-soft: #f3f2ef;
  --ink: #10100e;
  --muted: #54504a;
  --line: rgba(28, 27, 24, 0.12);
  --accent: #8d6831;
  --dark: #080807;
  --max: 1220px;
  --wide: 1380px;
  --display: "Instrument Serif", Georgia, serif;
  --body: "Manrope", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html {
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.66;
  background:
    radial-gradient(circle at 50% -160px, #ffffff 0%, #f6f6f4 34%, transparent 64%),
    linear-gradient(180deg, #f4f4f2 0%, #eeeeec 48%, #e7e7e3 100%);
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: 1rem;
  z-index: 999;
  transform: translateY(-160%);
  padding: 0.75rem 1rem;
  border-radius: 999px;
  color: #fff;
  background: var(--ink);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(20, 19, 17, 0.08);
  background: rgba(238, 238, 236, 0.86);
  backdrop-filter: blur(18px);
}

.nav-shell {
  max-width: var(--wide);
  min-height: 72px;
  margin: 0 auto;
  padding: 12px clamp(18px, 4vw, 54px);
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-logo img {
  width: clamp(160px, 16vw, 230px);
  max-height: 38px;
  object-fit: contain;
}

.nav-links {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-links a,
.nav-cta {
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav-links a {
  color: #403c36;
  padding: 8px 0;
  border-bottom: 1px solid transparent;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--ink);
  border-bottom-color: currentColor;
}

.nav-cta {
  min-height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: var(--ink);
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.018em;
  text-wrap: balance;
}

p {
  max-width: 65ch;
}

.lead {
  max-width: 62ch;
  font-size: clamp(1.08rem, 1.5vw, 1.28rem);
  line-height: 1.6;
  color: #302d29;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.button,
.text-link {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.button {
  padding: 0 24px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  color: #fff;
  background: var(--ink);
}

.button.ghost {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.68);
  border-color: var(--line);
}

.text-link {
  margin-top: 18px;
  border-bottom: 1px solid currentColor;
}

.hero-home,
.service-strip,
.work-intro,
.project-grid,
.ai-block,
.final-cta,
.page-hero,
.content-section,
.service-page-grid,
.case-hero,
.case-info,
.case-content,
.project-gallery,
.project-nav {
  max-width: var(--wide);
  margin: 0 auto;
  padding-left: clamp(20px, 4vw, 54px);
  padding-right: clamp(20px, 4vw, 54px);
}

.hero-home {
  padding-top: clamp(58px, 6vw, 92px);
  padding-bottom: clamp(54px, 6vw, 90px);
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(300px, 0.76fr);
  align-items: center;
  gap: clamp(42px, 6vw, 92px);
}

.hero-copy h1 {
  margin: 0 0 24px;
  font-size: clamp(4rem, 7.4vw, 7.8rem);
  line-height: 1;
}

.hero-copy h1 span {
  color: var(--accent);
  font-style: italic;
}

.hero-copy p {
  margin-top: 0;
  margin-bottom: 18px;
}

.hero-actions {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-portrait {
  margin: 0;
  max-width: 390px;
  justify-self: end;
}

.hero-portrait img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center 15%;
  border-radius: 22px;
  box-shadow: 0 26px 90px rgba(17, 16, 14, 0.13);
}

.hero-portrait figcaption {
  margin-top: 14px;
  color: #625d55;
  font-size: 0.78rem;
  font-weight: 800;
  text-align: center;
}

.service-strip {
  max-width: 1080px;
  padding-top: clamp(42px, 4.5vw, 62px);
  padding-bottom: clamp(30px, 3.5vw, 46px);
}

.section-head h2,
.work-intro h2,
.ai-block h2,
.final-cta h2,
.page-hero h1,
.content-section h2,
.case-copy h1,
.case-content h2 {
  margin-top: 0;
  margin-bottom: 18px;
  font-size: clamp(2.3rem, 4vw, 4.2rem);
}

.section-head p:not(.eyebrow),
.work-intro p,
.ai-block p,
.final-cta p,
.content-section p,
.case-content p {
  color: var(--muted);
  line-height: 1.68;
}

.service-grid,
.project-grid,
.service-page-grid,
.contact-grid,
.case-info,
.project-gallery {
  display: grid;
  gap: 22px;
}

.service-grid {
  margin-top: 26px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.service-grid article,
.service-page-grid article,
.contact-card,
.case-info article,
.project-card {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(251, 251, 248, 0.78);
  box-shadow: 0 14px 40px rgba(25, 23, 20, 0.045);
}

.service-grid article,
.service-page-grid article,
.contact-card,
.case-info article {
  padding: 24px 26px;
}

.service-grid h3,
.service-page-grid h2,
.contact-card h2,
.case-info h2,
.project-card h3 {
  margin-top: 0;
  margin-bottom: 12px;
  font-family: var(--body);
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.24;
  letter-spacing: -0.01em;
}

.service-grid p,
.service-page-grid p,
.contact-card p,
.case-info p,
.project-card p {
  margin-top: 0;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.6;
}

.work-intro {
  max-width: var(--max);
  padding-top: clamp(38px, 4vw, 58px);
  padding-bottom: clamp(32px, 3vw, 48px);
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.85fr);
  align-items: end;
  gap: clamp(28px, 6vw, 80px);
  border-top: 1px solid var(--line);
}

.work-intro h2 {
  font-size: clamp(3.2rem, 5.7vw, 5.8rem);
}

.project-grid {
  padding-bottom: clamp(64px, 7vw, 104px);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.project-card {
  overflow: hidden;
}

.project-image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--surface-soft);
}

.project-copy {
  padding: 26px 28px 30px;
}

.project-copy span {
  display: block;
  margin-bottom: 10px;
  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.project-copy h3 {
  font-size: 1.24rem;
}

.ai-block {
  max-width: var(--max);
  padding-top: clamp(58px, 6vw, 86px);
  padding-bottom: clamp(58px, 6vw, 86px);
  border-top: 1px solid var(--line);
}

.ai-block > div,
.final-cta {
  border-radius: 28px;
  padding: clamp(30px, 5vw, 58px);
  background: rgba(251, 251, 248, 0.78);
  border: 1px solid var(--line);
}

.final-cta {
  max-width: var(--max);
  margin-bottom: clamp(62px, 6vw, 90px);
}

.page-hero {
  padding-top: clamp(68px, 7vw, 110px);
  padding-bottom: clamp(58px, 6vw, 88px);
}

.split-page {
  display: grid;
  grid-template-columns: minmax(260px, 0.56fr) minmax(0, 1fr);
  gap: clamp(36px, 6vw, 88px);
  align-items: center;
}

.split-page figure {
  margin: 0;
}

.split-page img {
  border-radius: 22px;
}

.content-section,
.service-page-grid {
  max-width: var(--max);
  padding-top: clamp(42px, 5vw, 70px);
  padding-bottom: clamp(42px, 5vw, 70px);
  border-top: 1px solid var(--line);
}

.timeline-list {
  display: grid;
  gap: 18px;
  max-width: 860px;
}

.timeline-list article {
  padding: 24px 26px;
  border-radius: 22px;
  background: rgba(251, 251, 248, 0.76);
  border: 1px solid var(--line);
}

.timeline-list h3 {
  margin-top: 0;
  margin-bottom: 10px;
  font-family: var(--body);
  font-size: 1.08rem;
  font-weight: 800;
}

.timeline-list p {
  margin-top: 0;
}

.meta,
.small-note {
  color: var(--muted);
  font-size: 0.95rem;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tag-list span {
  padding: 12px 16px;
  border-radius: 999px;
  background: rgba(251, 251, 248, 0.78);
  border: 1px solid var(--line);
  font-weight: 700;
  color: #39352f;
}

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

.contact-grid {
  margin-top: 30px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.contact-card a {
  border-bottom: 1px solid currentColor;
  font-weight: 800;
}

.privacy-page h2 {
  margin-top: 34px;
  margin-bottom: 12px;
  font-family: var(--body);
  font-size: 1.16rem;
  font-weight: 800;
}

.case-hero {
  padding-top: clamp(64px, 7vw, 104px);
  padding-bottom: clamp(48px, 6vw, 82px);
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
  gap: clamp(34px, 6vw, 84px);
  align-items: center;
}

.case-hero figure {
  margin: 0;
}

.case-hero img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 28px;
  box-shadow: 0 24px 72px rgba(25, 23, 20, 0.09);
}

.case-info {
  max-width: var(--max);
  padding-top: 0;
  padding-bottom: clamp(36px, 5vw, 64px);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.case-content {
  max-width: 920px;
  padding-top: clamp(38px, 5vw, 66px);
  padding-bottom: clamp(38px, 5vw, 66px);
  border-top: 1px solid var(--line);
}

.project-gallery {
  padding-top: 22px;
  padding-bottom: clamp(44px, 6vw, 76px);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.project-gallery figure {
  margin: 0;
  overflow: hidden;
  border-radius: 24px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
}

.project-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.project-nav {
  max-width: var(--max);
  padding-top: 34px;
  padding-bottom: 74px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.project-nav a {
  font-weight: 800;
  border-bottom: 1px solid currentColor;
}

.site-footer {
  color: #fff;
  background: var(--dark);
}

.footer-inner {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 64px clamp(20px, 4vw, 54px);
}

.footer-inner img {
  width: 210px;
  margin-bottom: 24px;
}

.footer-inner p {
  color: rgba(255, 255, 255, 0.72);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 18px;
  margin: 24px 0;
}

.footer-links a {
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.24);
}

.footer-copy {
  margin-bottom: 0;
  font-size: 0.9rem;
}

@media (max-width: 1020px) {
  .hero-home,
  .work-intro,
  .case-hero,
  .split-page {
    grid-template-columns: 1fr;
  }

  .hero-portrait {
    justify-self: start;
    max-width: 330px;
  }

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

  .nav-cta {
    display: none;
  }
}

@media (max-width: 760px) {
  body {
    font-size: 16px;
  }

  .nav-shell {
    min-height: 64px;
    gap: 12px;
  }

  .nav-logo img {
    width: 138px;
  }

  .nav-links {
    gap: 9px;
  }

  .nav-links a {
    font-size: 0.6rem;
  }

  .hero-home {
    padding-top: 46px;
    padding-bottom: 52px;
  }

  .hero-copy h1 {
    font-size: clamp(3.25rem, 15vw, 4.85rem);
  }

  .hero-actions .button {
    width: 100%;
  }

  .service-grid,
  .project-grid,
  .service-page-grid,
  .contact-grid,
  .case-info,
  .project-gallery {
    grid-template-columns: 1fr;
  }

  .service-grid article,
  .project-copy,
  .service-page-grid article,
  .contact-card,
  .case-info article {
    padding: 21px;
  }

  .work-intro h2 {
    font-size: clamp(2.65rem, 11vw, 3.9rem);
  }

  .section-head h2,
  .ai-block h2,
  .final-cta h2,
  .page-hero h1,
  .content-section h2,
  .case-copy h1,
  .case-content h2 {
    font-size: clamp(2rem, 9vw, 3rem);
  }

  .project-nav {
    flex-direction: column;
  }
}
