@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600&family=Manrope:wght@400;500;600&display=swap');

:root {
  --ink: #18201d;
  --ink-soft: #4f5753;
  --paper: #f2f0e9;
  --paper-deep: #e9e6dd;
  --cream: #f9f8f3;
  --line: rgba(24, 32, 29, 0.17);
  --accent: #9db344;
  --dark: #15211d;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Manrope', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
svg { display: block; width: 1.05rem; }

.nav {
  width: min(100% - 72px, 1440px);
  height: 96px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 10;
}
.brand { font: 600 1.4rem/1 'DM Sans', sans-serif; letter-spacing: -0.07em; }
.brand span { color: var(--accent); }
.nav-links { display: flex; gap: 2rem; font-size: 0.76rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; }
.nav-links a, .text-link, .nav-cta { transition: opacity 180ms ease; }
.nav-links a:hover, .text-link:hover, .nav-cta:hover { opacity: 0.58; }
.nav-cta { justify-self: end; display: flex; align-items: center; gap: 0.65rem; font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; }

.hero {
  width: min(100% - 72px, 1440px);
  min-height: calc(100svh - 96px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(350px, 0.62fr);
  gap: 0;
  align-items: stretch;
  padding: clamp(3.5rem, 8vh, 7.5rem) 0 3rem;
}
.hero-copy { position: relative; z-index: 4; display: flex; flex-direction: column; justify-content: space-between; }
.hero-kicker { display: flex; align-items: center; gap: 0.75rem; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.11em; text-transform: uppercase; }
.availability-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px rgba(157, 179, 68, 0.18); }
.hero h1, .section h2, .contact h2, .statement p { font-family: 'DM Sans', Arial, sans-serif; font-weight: 500; letter-spacing: -0.055em; }
.hero h1 { max-width: 1040px; margin: 3rem 0 4rem; font-size: clamp(3.6rem, 6.5vw, 7.4rem); line-height: 0.93; }
.hero h1 em, .journey-intro h2 em { color: var(--accent); font-style: normal; }
.hero-bottom { display: flex; flex-direction: column; justify-content: flex-start; align-items: flex-start; gap: 1.75rem; }
.hero-bottom p { max-width: min(630px, calc(100% - 4rem)); margin: 0; color: var(--ink-soft); font-size: clamp(1rem, 1.3vw, 1.22rem); line-height: 1.6; }
.text-link { min-width: max-content; padding-bottom: 0.5rem; border-bottom: 1px solid currentColor; font-size: 0.76rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.text-link span { margin-left: 1rem; }
.portrait-wrap { min-height: 590px; margin: 0 0 0 -3.5rem; position: relative; z-index: 1; overflow: hidden; background: transparent; }
.portrait-wrap::after { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, transparent 55%, rgba(12, 18, 16, 0.62)); -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.5) 9%, #000 25%); mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.5) 9%, #000 25%); pointer-events: none; }
.portrait { width: 100%; height: 100%; display: block; object-fit: cover; object-position: 68% 50%; filter: saturate(0.82) contrast(1.04); -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.5) 9%, #000 25%); mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.5) 9%, #000 25%); }
.portrait-wrap figcaption { position: absolute; left: clamp(3.25rem, 15%, 5rem); right: 1rem; bottom: 1.35rem; z-index: 3; display: flex; flex-direction: column; align-items: flex-start; gap: 0.25rem; color: white; font-size: 0.62rem; line-height: 1.15; text-transform: uppercase; letter-spacing: 0.08em; }
.portrait-wrap figcaption span { white-space: nowrap; }

.statement { width: min(100% - 72px, 1440px); margin: 0 auto; padding: clamp(7rem, 14vw, 13rem) 0; display: grid; grid-template-columns: 1fr 3fr; border-top: 1px solid var(--line); }
.section-index, .eyebrow { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.statement p { max-width: 1060px; margin: 0; font-size: clamp(2rem, 4vw, 4.6rem); line-height: 1.12; }
.statement strong { color: var(--accent); font-weight: 500; }

.section { padding: clamp(6rem, 10vw, 10rem) max(36px, calc((100vw - 1440px) / 2)); }
.services-section { background: var(--dark); color: var(--cream); }
.section-heading { display: grid; grid-template-columns: 1.6fr 0.65fr; align-items: end; gap: 3rem; margin-bottom: clamp(4rem, 8vw, 8rem); }
.section-heading h2, .journey-intro h2 { margin: 1.6rem 0 0; font-size: clamp(3rem, 5.4vw, 6.3rem); line-height: 0.97; }
.section-heading > p { margin: 0; color: #aeb5b0; line-height: 1.65; }
.services-grid { border-top: 1px solid rgba(255, 255, 255, 0.2); }
.service-card { min-height: 185px; display: grid; grid-template-columns: 0.35fr 1.6fr auto; gap: 2rem; align-items: center; border-bottom: 1px solid rgba(255, 255, 255, 0.2); transition: padding 220ms ease, background 220ms ease; }
.service-card:hover { padding: 0 1.5rem; background: rgba(255, 255, 255, 0.04); }
.service-number { color: var(--accent); font-size: 0.74rem; }
.service-card h3, .project-head h3, .timeline-item h3, .process-grid h3 { margin: 0; font-family: 'DM Sans', Arial, sans-serif; font-weight: 500; letter-spacing: -0.035em; }
.service-card h3 { font-size: clamp(1.8rem, 3.5vw, 3.8rem); }
.service-card p { max-width: 540px; margin: 1rem 0 0; color: #aeb5b0; line-height: 1.6; }
.service-arrow { font-size: 1.4rem; }

.projects-section { overflow: hidden; background: var(--cream); }
.projects-heading > p { color: var(--ink-soft); }
.project-showcase { min-width: 0; }
.carousel-toolbar { margin-bottom: 2rem; padding-top: 1rem; display: flex; align-items: center; justify-content: space-between; gap: 2rem; border-top: 1px solid var(--line); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; }
.carousel-buttons { display: flex; gap: 0.6rem; }
.carousel-buttons button { width: 42px; height: 42px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--ink); font: inherit; cursor: pointer; transition: background 180ms ease, color 180ms ease; }
.carousel-buttons button:hover { background: var(--ink); color: var(--cream); }
.profile-carousel { display: flex; gap: clamp(1rem, 2vw, 2rem); overflow-x: auto; overscroll-behavior-inline: contain; scroll-behavior: smooth; scroll-snap-type: x mandatory; scrollbar-width: none; }
.profile-carousel::-webkit-scrollbar { display: none; }
.profile-card { flex: 0 0 clamp(250px, 25vw, 360px); min-width: 0; scroll-snap-align: start; }
.profile-index { display: block; margin-bottom: 0.8rem; color: #758628; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.1em; }
.profile-phone { position: relative; aspect-ratio: 772 / 1573; overflow: hidden; }
.profile-phone::after { content: ''; position: absolute; left: 9.5%; top: 2.8%; z-index: 2; width: 17%; height: 3.4%; border-radius: 999px; background: #000; pointer-events: none; }
.profile-phone img { width: 100%; height: 100%; display: block; object-fit: contain; }
.profile-caption { margin-top: 1rem; padding-top: 1rem; display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; border-top: 1px solid var(--line); }
.profile-caption h3 { min-width: 0; margin: 0; overflow: hidden; font-family: 'DM Sans', Arial, sans-serif; font-size: clamp(1rem, 1.35vw, 1.25rem); font-weight: 500; letter-spacing: -0.025em; text-overflow: ellipsis; white-space: nowrap; }
.profile-caption span { color: var(--ink-soft); font-size: 0.62rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.other-projects { margin-top: clamp(4.5rem, 7vw, 7rem); padding-top: 2rem; border-top: 1px solid var(--line); }
.other-projects-label { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.11em; text-transform: uppercase; }
.other-projects-viewport { margin-top: 1.5rem; overflow-x: auto; overflow-y: hidden; outline-offset: 6px; scrollbar-width: none; -webkit-overflow-scrolling: touch; -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.other-projects-viewport::-webkit-scrollbar { display: none; }
.other-projects-track { width: max-content; display: flex; gap: 1rem; will-change: transform; }
.other-projects-group { display: flex; gap: 1rem; }
.other-project-card { flex: 0 0 clamp(280px, 26vw, 370px); min-width: 0; padding: 0.65rem 0.65rem 0.8rem; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); }
.other-project-image { aspect-ratio: 3 / 2; overflow: hidden; border-radius: 12px; background: #0b1014; }
.other-project-image img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: top; }
.other-project-card h3 { margin: 0.8rem 0 0; overflow: hidden; font-family: 'DM Sans', Arial, sans-serif; font-size: 0.9rem; font-weight: 500; letter-spacing: -0.02em; text-overflow: ellipsis; white-space: nowrap; }

.journey-section { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(4rem, 10vw, 11rem); background: var(--paper-deep); }
.journey-intro { position: sticky; top: 3rem; align-self: start; }
.journey-portrait { width: min(82%, 400px); aspect-ratio: 1; margin: 3.5rem auto 0; overflow: hidden; border: 1px solid rgba(24, 32, 29, 0.22); border-radius: 50%; background: var(--dark); }
.journey-portrait img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center top; filter: saturate(0.72) contrast(1.04); }
.timeline { border-top: 1px solid var(--line); }
.timeline-item { min-height: 195px; padding: 2.5rem 0; display: grid; grid-template-columns: 0.48fr 1.5fr; gap: 2rem; border-bottom: 1px solid var(--line); }
.timeline-item > span { color: var(--ink-soft); font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; }
.timeline-item h3 { font-size: clamp(1.4rem, 2.2vw, 2rem); }
.timeline-item p { margin: 1rem 0 0; color: var(--ink-soft); line-height: 1.65; }
.timeline-item.featured > span, .timeline-item.featured h3 { color: #6f8124; }

.process-section { background: var(--cream); }
.process-heading > p { color: var(--ink-soft); }
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.process-grid article { min-height: 260px; padding: 2rem; display: flex; flex-direction: column; border-right: 1px solid var(--line); }
.process-grid article:first-child { padding-left: 0; }
.process-grid article:last-child { padding-right: 0; border-right: 0; }
.process-grid article > span { color: #758628; font-size: 0.72rem; }
.process-grid h3 { margin-top: 3.5rem; font-size: 1.45rem; }
.process-grid p { margin: 1rem 0 0; color: var(--ink-soft); line-height: 1.6; font-size: 0.88rem; }

.contact { min-height: 88svh; padding: 3rem max(36px, calc((100vw - 1440px) / 2)); display: flex; flex-direction: column; justify-content: space-between; background: var(--accent); color: var(--dark); }
.contact-topline, .contact-footer { display: flex; justify-content: space-between; gap: 2rem; font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; }
.contact-main { padding: 6rem 0; }
.contact-main p { margin: 0 0 2rem; font-size: clamp(1rem, 1.4vw, 1.25rem); }
.contact h2 { margin: 0; font-size: clamp(4rem, 9vw, 10.5rem); line-height: 0.86; }
.contact-links { display: flex; flex-wrap: wrap; gap: 1rem 2rem; font-size: 0.84rem; text-transform: none; letter-spacing: 0; }
.contact-links a { padding-bottom: 0.4rem; border-bottom: 1px solid currentColor; transition: opacity 180ms ease; }
.contact-links a:hover { opacity: 0.58; }

@media (max-width: 980px) {
  .nav { width: min(100% - 40px, 1440px); }
  .nav-links { display: none; }
  .hero { width: min(100% - 40px, 1440px); grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr); gap: 0; min-height: auto; }
  .hero-copy { min-height: 620px; }
  .hero h1 { font-size: clamp(3.4rem, 7.6vw, 5.2rem); }
  .hero-bottom { align-items: start; flex-direction: column; }
  .hero-bottom p { max-width: calc(100% - 5.5rem); }
  .portrait-wrap { height: auto; min-height: 620px; margin-left: -3rem; }
  .statement { width: min(100% - 40px, 1440px); grid-template-columns: 1fr; gap: 3rem; }
  .section-heading, .journey-section { grid-template-columns: 1fr; }
  .journey-intro { position: static; }
  .journey-portrait { width: min(68%, 400px); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid article:nth-child(2) { border-right: 0; }
  .process-grid article:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
  .process-grid article:first-child, .process-grid article:nth-child(3) { padding-left: 0; }
  .process-grid article:nth-child(2), .process-grid article:last-child { padding-right: 0; }
  .process-grid article { min-height: 235px; }
}

@media (max-width: 640px) {
  .nav { height: 76px; }
  .nav-cta { font-size: 0.65rem; }
  .hero { grid-template-columns: minmax(0, 1.42fr) minmax(138px, 0.82fr); gap: 0; padding-top: 2.5rem; }
  .hero-copy { min-height: auto; }
  .hero-kicker { gap: 0.55rem; font-size: 0.56rem; letter-spacing: 0.08em; }
  .availability-dot { width: 6px; height: 6px; box-shadow: 0 0 0 4px rgba(157, 179, 68, 0.18); }
  .hero h1 { margin: 2.4rem 0 2.2rem; font-size: clamp(1.75rem, 7.2vw, 2.85rem); line-height: 0.96; }
  .hero-bottom { align-items: start; flex-direction: column; }
  .hero-bottom p { max-width: calc(100% - 30px); font-size: 0.72rem; line-height: 1.55; }
  .text-link { font-size: 0.58rem; letter-spacing: 0.06em; }
  .portrait-wrap { height: clamp(390px, 105vw, 560px); min-height: 0; margin-left: -24px; }
  .portrait-wrap::after,
  .portrait { -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.55) 10%, #000 23%); mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.55) 10%, #000 23%); }
  .portrait { object-position: 74% 50%; }
  .portrait-wrap figcaption { left: 1.65rem; right: 0.45rem; bottom: 0.75rem; gap: 0.18rem; font-size: 0.43rem; }
  .section { padding-left: 20px; padding-right: 20px; }
  .section-heading { gap: 2rem; }
  .service-card { min-height: 225px; grid-template-columns: 42px 1fr; }
  .service-arrow { display: none; }
  .carousel-toolbar { align-items: flex-start; }
  .carousel-toolbar > span { max-width: 190px; line-height: 1.5; }
  .carousel-buttons button { width: 38px; height: 38px; }
  .profile-card { flex-basis: min(78vw, 300px); }
  .other-project-card { flex-basis: min(68vw, 330px); }
  .timeline-item { grid-template-columns: 1fr; gap: 1rem; }
  .journey-portrait { width: min(84%, 390px); margin-left: auto; margin-right: auto; }
  .process-grid { grid-template-columns: 1fr; }
  .process-grid article { min-height: 0; padding: 2rem 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .process-grid h3 { margin-top: 2.5rem; }
  .process-grid article:last-child { border-bottom: 0; }
  .contact { min-height: 760px; padding: 2rem 20px; }
  .contact-topline span:last-child { display: none; }
  .contact h2 { font-size: clamp(3.7rem, 17vw, 6rem); }
  .contact-footer { align-items: start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
  .other-projects-viewport { -webkit-mask-image: none; mask-image: none; }
}
