@font-face {
  font-family: "Anodina";
  src: url("../fonts/Anodina-Light.otf") format("opentype");
  font-style: normal;
  font-weight: 300;
  font-display: swap;
}

:root {
  --ink: #151313;
  --paper: #f5f3ee;
  --paper-deep: #e9e5dd;
  --white: #ffffff;
  --red: #cf253a;
  --red-dark: #861827;
  --line-dark: rgba(21, 19, 19, 0.18);
  --line-light: rgba(255, 255, 255, 0.24);
  --shell: min(1180px, calc(100% - 48px));
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--paper); color: var(--ink); font-family: "Manrope", sans-serif; line-height: 1.6; }
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 4px; }

.skip-link { background: var(--white); color: var(--ink); left: 16px; padding: 10px 16px; position: fixed; top: -60px; z-index: 100; }
.skip-link:focus { top: 16px; }
.site-header { color: var(--white); left: 0; position: fixed; right: 0; top: 0; transition: background-color 220ms ease, box-shadow 220ms ease; z-index: 50; }
.site-header.scrolled, .site-header.menu-active { background: rgba(21, 19, 19, 0.96); box-shadow: 0 1px 0 var(--line-light); }
.nav-shell { align-items: center; display: flex; height: 82px; justify-content: space-between; margin: 0 auto; width: var(--shell); }
.brand img { display: block; height: auto; width: 134px; }
.nav-links { align-items: center; display: flex; gap: 30px; }
.nav-links a { font-size: 0.84rem; font-weight: 600; }
.nav-links a:not(.nav-cta) { position: relative; }
.nav-links a:not(.nav-cta)::after { background: var(--red); bottom: -7px; content: ""; height: 2px; left: 0; position: absolute; transform: scaleX(0); transform-origin: right; transition: transform 180ms ease; width: 100%; }
.nav-links a:not(.nav-cta):hover::after { transform: scaleX(1); transform-origin: left; }
.nav-cta { border: 1px solid var(--line-light); padding: 10px 16px; }
.nav-cta:hover { background: var(--white); color: var(--ink); }
.menu-button { align-items: center; background: transparent; border: 0; color: var(--white); cursor: pointer; display: none; gap: 12px; min-height: 44px; }
.menu-button > span:first-child { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; }
.menu-icon, .menu-icon::before, .menu-icon::after { background: currentColor; display: block; height: 1px; transition: transform 180ms ease; width: 22px; }
.menu-icon { position: relative; }
.menu-icon::before, .menu-icon::after { content: ""; left: 0; position: absolute; }
.menu-icon::before { top: -6px; }
.menu-icon::after { top: 6px; }
.menu-button[aria-expanded="true"] .menu-icon { background: transparent; }
.menu-button[aria-expanded="true"] .menu-icon::before { top: 0; transform: rotate(45deg); }
.menu-button[aria-expanded="true"] .menu-icon::after { top: 0; transform: rotate(-45deg); }

.section-shell { margin: 0 auto; width: var(--shell); }
.section { padding: 120px 0; }
.eyebrow { color: rgba(255, 255, 255, 0.72); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; margin-bottom: 22px; text-transform: uppercase; }
.eyebrow.dark { color: var(--red-dark); }
h1, h2, h3 { font-family: "Anodina", Georgia, serif; font-weight: 300; line-height: 1.02; }

.hero { align-items: center; background-color: var(--ink); background-image: linear-gradient(90deg, rgba(8, 8, 12, 0.93) 0%, rgba(8, 8, 12, 0.72) 50%, rgba(8, 8, 12, 0.34) 100%), url("../images/phano-hero.jpg"); background-position: center; background-size: cover; color: var(--white); display: flex; min-height: 92svh; overflow: hidden; padding: 132px 0 78px; position: relative; }
.hero::after { border: 1px solid rgba(255, 255, 255, 0.13); content: ""; height: 42vw; max-height: 600px; max-width: 600px; position: absolute; right: -12vw; transform: rotate(45deg); width: 42vw; }
.hero-inner { margin: 0 auto; position: relative; width: var(--shell); z-index: 1; }
.hero h1 { font-size: clamp(4.75rem, 6vw, 6.5rem); letter-spacing: 0; max-width: 900px; }
.hero-copy { color: rgba(255, 255, 255, 0.78); font-size: 1.05rem; margin: 32px 0 38px; max-width: 610px; }
.hero-actions { align-items: center; display: flex; flex-wrap: wrap; gap: 28px; }
.button { align-items: center; border: 0; cursor: pointer; display: inline-flex; font-size: 0.86rem; font-weight: 700; justify-content: center; min-height: 50px; padding: 13px 20px; transition: background-color 180ms ease, color 180ms ease, transform 180ms ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--red); color: var(--white); }
.button-primary:hover { background: var(--white); color: var(--ink); }
.text-link { border-bottom: 1px solid var(--line-light); font-size: 0.86rem; font-weight: 600; padding-bottom: 5px; }
.text-link span { margin-left: 8px; }
.hero-marker { bottom: 24px; color: rgba(255, 255, 255, 0.34); font-size: 0.61rem; font-weight: 700; left: max(24px, calc((100% - 1180px) / 2)); letter-spacing: 0.16em; position: absolute; }

.intro { background: var(--paper); }
.intro-grid { display: grid; gap: 80px; grid-template-columns: 1.05fr 0.95fr; }
.intro h2, .process h2 { font-size: clamp(2.8rem, 5vw, 5.2rem); }
.intro-copy { align-self: end; font-size: 1.12rem; max-width: 520px; }
.principle { border-left: 3px solid var(--red); font-family: "Anodina", Georgia, serif; font-size: 1.8rem; line-height: 1.2; margin-top: 38px; padding: 4px 0 4px 24px; }

.services { background: var(--ink); color: var(--white); }
.section-heading { margin-bottom: 74px; }
.section-heading h2 { font-size: clamp(3rem, 6vw, 6.2rem); }
.service-list { border-top: 1px solid var(--line-light); }
.service-item { align-items: start; border-bottom: 1px solid var(--line-light); display: grid; gap: 32px; grid-template-columns: 80px 1fr 210px; padding: 42px 0; }
.service-number, .service-tag { color: rgba(255, 255, 255, 0.48); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.service-item h3 { font-size: clamp(2rem, 3.5vw, 3.5rem); margin-bottom: 14px; }
.service-item div p { color: rgba(255, 255, 255, 0.65); max-width: 630px; }
.service-tag { padding-top: 10px; text-align: right; }
.service-meta { align-items: flex-end; display: flex; flex-direction: column; gap: 18px; }
.service-link { border-bottom: 1px solid var(--line-light); font-size: 0.72rem; font-weight: 700; padding-bottom: 4px; }
.service-link:hover { border-color: var(--white); }

.process { background-color: var(--paper-deep); background-image: linear-gradient(rgba(21, 19, 19, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(21, 19, 19, 0.035) 1px, transparent 1px); background-size: 48px 48px; }
.process .section-shell { display: grid; gap: 90px; grid-template-columns: 0.85fr 1.15fr; }
.process-intro { position: sticky; top: 130px; }
.process-intro > p:last-child { margin-top: 28px; max-width: 420px; }
.process-list { list-style: none; }
.process-list li { border-top: 1px solid var(--line-dark); display: grid; gap: 28px; grid-template-columns: 50px 1fr; padding: 32px 0 44px; }
.process-list li:last-child { border-bottom: 1px solid var(--line-dark); }
.process-list span { color: var(--red-dark); font-size: 0.72rem; font-weight: 700; }
.process-list h3 { font-size: 2.2rem; margin-bottom: 12px; }
.process-list p { color: rgba(21, 19, 19, 0.66); }

.contact { background: var(--red-dark); color: var(--white); }
.contact-grid { display: grid; gap: 100px; grid-template-columns: 0.9fr 1.1fr; }
.contact-copy h2 { font-size: clamp(3rem, 5.6vw, 5.7rem); }
.contact-copy > p:not(.eyebrow) { color: rgba(255, 255, 255, 0.72); margin: 30px 0; max-width: 520px; }
.contact-copy > a { border-bottom: 1px solid var(--line-light); font-size: 0.88rem; padding-bottom: 5px; }
.contact-form { align-self: end; }
.field { margin-bottom: 24px; }
.field label { display: block; font-size: 0.72rem; font-weight: 700; margin-bottom: 7px; text-transform: uppercase; }
.field label span { color: rgba(255, 255, 255, 0.56); font-weight: 500; text-transform: none; }
.field input, .field textarea, .field select { background: transparent; border: 0; border-bottom: 1px solid var(--line-light); border-radius: 0; color: var(--white); outline: none; padding: 10px 0; resize: vertical; width: 100%; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--white) 50%), linear-gradient(135deg, var(--white) 50%, transparent 50%); background-position: calc(100% - 10px) 50%, calc(100% - 5px) 50%; background-repeat: no-repeat; background-size: 5px 5px, 5px 5px; cursor: pointer; }
.field select option { color: var(--ink); }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--white); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #ffb7bd; }
.field-meta { align-items: start; display: flex; gap: 16px; justify-content: space-between; }
.field-error { color: #ffd5d9; font-size: 0.75rem; font-weight: 600; min-height: 1.5em; padding-top: 6px; }
.character-count { color: rgba(255, 255, 255, 0.56); flex: none; font-size: 0.7rem; padding-top: 6px; }
.honeypot { height: 1px; left: -10000px; overflow: hidden; position: absolute; top: auto; width: 1px; }
.button-light { background: var(--white); color: var(--ink); gap: 60px; margin-top: 10px; }
.button-light:hover { background: var(--ink); color: var(--white); }
.form-note { color: rgba(255, 255, 255, 0.62); font-size: 0.7rem; margin-top: 14px; }

footer { background: var(--ink); color: rgba(255, 255, 255, 0.58); font-size: 0.72rem; padding: 30px 0; }
.footer-inner { align-items: center; display: grid; gap: 30px; grid-template-columns: auto 1fr auto; }
.footer-inner img { display: block; height: auto; width: 94px; }
.footer-inner p:nth-child(2) { text-align: center; }
.footer-inner p:last-child { text-align: right; }
.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 600ms ease, transform 600ms ease; }
.js .reveal.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 820px) {
  :root { --shell: min(100% - 32px, 680px); }
  .section { padding: 88px 0; }
  .nav-shell { height: 72px; }
  .brand img { width: 112px; }
  .menu-button { display: flex; position: relative; z-index: 2; }
  .nav-links { align-items: stretch; background: var(--ink); display: flex; flex-direction: column; gap: 0; inset: 0; justify-content: center; opacity: 0; padding: 90px 24px 36px; pointer-events: none; position: fixed; transform: translateY(-18px); transition: opacity 180ms ease, transform 180ms ease; }
  .nav-links.open { opacity: 1; pointer-events: auto; transform: translateY(0); }
  .nav-links a { border-bottom: 1px solid var(--line-light); font-family: "Anodina", Georgia, serif; font-size: clamp(2.3rem, 11vw, 4rem); font-weight: 300; line-height: 1; padding: 20px 0; }
  .nav-links a:not(.nav-cta)::after { display: none; }
  .nav-cta { border: 0; }
  .hero { background-position: 58% center; min-height: 90svh; padding-bottom: 68px; }
  .hero h1 { font-size: clamp(3.35rem, 15vw, 5.6rem); }
  .hero::after { display: none; }
  .intro-grid, .process .section-shell, .contact-grid { gap: 58px; grid-template-columns: 1fr; }
  .intro-copy { max-width: none; }
  .service-item { gap: 20px; grid-template-columns: 42px 1fr; }
  .service-meta { align-items: flex-start; grid-column: 2; }
  .service-tag { padding-top: 0; text-align: left; }
  .process-intro { position: static; }
}

@media (max-width: 520px) {
  .hero-actions { align-items: flex-start; flex-direction: column; }
  .hero-copy { font-size: 0.96rem; }
  .service-item { grid-template-columns: 1fr; }
  .service-meta { grid-column: 1; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-inner p:nth-child(2), .footer-inner p:last-child { text-align: left; }
}

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