:root {
  --cream: #fbf8ef;
  --paper: #f3eee2;
  --ink: #26231d;
  --red: #d33b29;
  --sage: #cdd9c7;
  --yellow: #f1c84b;
  --line: #c9c4b8;
  --white: #fffdf8;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: Arial, Helvetica, sans-serif; }
a { color: inherit; }
img { display: block; max-width: 100%; }
.wrap { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 100; left: 16px; top: 12px; padding: 10px 14px; background: var(--ink); color: white; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }

.site-header { display: flex; min-height: 86px; justify-content: space-between; align-items: center; gap: 30px; }
.logo { display: flex; flex: none; gap: 10px; align-items: center; font-size: 1.05rem; font-weight: 800; letter-spacing: -.04em; text-decoration: none; }
.mark { display: grid; width: 30px; aspect-ratio: 1; background: var(--red); color: white; border-radius: 50% 50% 3px 50%; place-items: center; font-size: .7rem; transform: rotate(-8deg); }
.site-header nav { display: flex; gap: 26px; font-size: .76rem; font-weight: 700; }
.site-header nav a { text-decoration: none; text-underline-offset: 5px; }
.site-header nav a:hover, .site-header nav a:focus-visible { text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 2px; }

.hero { display: grid; min-height: 680px; grid-template-columns: 1.22fr .78fr; gap: 78px; align-items: center; padding: 76px 0 110px; }
.pill { display: inline-block; padding: 8px 12px; background: var(--sage); border-radius: 100px; font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
h1 { max-width: 830px; margin: 24px 0 30px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(4rem, 8.6vw, 8rem); font-weight: 400; line-height: .86; letter-spacing: -.058em; }
h1 span { position: relative; isolation: isolate; white-space: nowrap; }
h1 span::after { content: ""; position: absolute; z-index: -1; left: -.02em; right: -.02em; bottom: .01em; height: .09em; background: var(--red); transform: rotate(-1deg); }
.intro { max-width: 660px; font-size: 1.12rem; line-height: 1.65; }
.button { display: inline-block; margin-top: 18px; padding: 15px 21px; background: var(--ink); color: white; border: 2px solid var(--ink); border-radius: 4px; font-size: .78rem; font-weight: 800; text-decoration: none; transition: background .2s, color .2s; }
.button:hover, .button:focus-visible { background: transparent; color: var(--ink); }
.hero-card { position: relative; padding: 30px; background: var(--yellow); border: 1px solid var(--ink); box-shadow: 10px 10px 0 var(--ink); transform: rotate(2deg); }
.hero-card::before { content: ""; position: absolute; width: 80px; height: 26px; top: -15px; left: 50%; background: rgba(255,255,255,.72); transform: translateX(-50%) rotate(-3deg); }
.hero-card small { font-size: .65rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.hero-card p { margin: 96px 0 22px; font-family: Georgia, serif; font-size: clamp(2rem, 3vw, 2.8rem); line-height: 1.1; letter-spacing: -.025em; }
.hero-card span { display: block; padding-top: 17px; border-top: 1px solid rgba(38,35,29,.5); font-size: .78rem; font-weight: 700; line-height: 1.5; }

.projects { padding: 110px 0 125px; border-top: 1px solid var(--line); }
.section-top { display: grid; grid-template-columns: 1.1fr .9fr; gap: 70px; align-items: end; margin-bottom: 56px; }
.label { color: var(--red); font-size: .68rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
h2 { margin: 12px 0 0; font-family: Georgia, serif; font-size: clamp(3rem, 5.8vw, 6rem); font-weight: 400; line-height: .93; letter-spacing: -.048em; }
.section-top p { max-width: 500px; margin: 0; font-size: 1.02rem; line-height: 1.7; }
.cards { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; }
.card { position: relative; overflow: hidden; display: flex; min-height: 540px; border: 1px solid var(--ink); flex-direction: column; color: white; text-decoration: none; isolation: isolate; }
.card:nth-child(1) { grid-column: span 7; }
.card:nth-child(2) { grid-column: span 5; }
.card:nth-child(3) { grid-column: 3 / span 8; }
.card img { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card::after { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.08), rgba(0,0,0,.84)); }
.card:hover img, .card:focus-visible img { transform: scale(1.035); }
.card-top { display: flex; padding: 22px; justify-content: space-between; gap: 20px; font-size: .65rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.card-copy { margin-top: auto; padding: 28px; }
.card h3 { max-width: 620px; margin: 0 0 14px; font-family: Georgia, serif; font-size: clamp(2.5rem, 4.7vw, 5rem); font-weight: 400; line-height: .88; letter-spacing: -.045em; }
.card p { max-width: 610px; margin: 0; font-size: .96rem; line-height: 1.6; }
.card-link { display: inline-block; margin-top: 20px; padding-bottom: 5px; border-bottom: 2px solid white; font-size: .7rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.card:nth-child(2) img { object-fit: contain; padding: 42px; background: #eeeee8; }
.inside-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; margin-top: 74px; }
.inside-grid article { padding-top: 22px; border-top: 1px solid var(--ink); }
.inside-number { color: var(--red); font-size: .67rem; font-weight: 800; }
.inside-grid h3 { margin: 25px 0 12px; font-family: Georgia, serif; font-size: 1.65rem; font-weight: 400; line-height: 1.08; }
.inside-grid p { margin: 0; font-size: .9rem; line-height: 1.65; }

.about { padding: 120px 0; background: var(--paper); border-block: 1px solid var(--line); }
.about-grid { display: grid; grid-template-columns: .7fr 1.3fr; gap: 95px; align-items: center; }
.portrait-card { position: relative; display: flex; min-height: 510px; padding: 30px; background: var(--red); border: 1px solid var(--ink); box-shadow: 12px 12px 0 var(--yellow); flex-direction: column; justify-content: space-between; transform: rotate(-2deg); }
.portrait-card::before { content: ""; position: absolute; width: 110px; height: 28px; top: -14px; right: 16%; background: rgba(255,255,255,.65); transform: rotate(3deg); }
.portrait-initials { color: var(--cream); font-family: Georgia, serif; font-size: clamp(7rem, 16vw, 12rem); line-height: .8; letter-spacing: -.1em; }
.portrait-caption { padding-top: 20px; border-top: 1px solid rgba(255,255,255,.55); color: white; font-size: .72rem; font-weight: 800; line-height: 1.5; text-transform: uppercase; }
.about-copy h2 { margin-bottom: 34px; }
.about-copy p { max-width: 680px; margin: 0 0 18px; line-height: 1.72; }
.about-copy .about-lead { font-family: Georgia, serif; font-size: clamp(1.35rem, 2vw, 1.8rem); line-height: 1.45; }
.skills { display: flex; flex-wrap: wrap; gap: 8px; margin: 34px 0 0; padding: 0; list-style: none; }
.skills li { padding: 9px 13px; border: 1px solid var(--ink); border-radius: 100px; font-size: .7rem; font-weight: 800; }

.principles { padding: 120px 0; background: var(--sage); }
.principles-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 95px; }
.principles h2 { max-width: 500px; }
.principles-intro { max-width: 470px; margin: 30px 0 0; line-height: 1.7; }
.principle { display: grid; grid-template-columns: 48px 1fr; padding: 26px 0; border-top: 1px solid rgba(38,35,29,.38); }
.principle:last-child { border-bottom: 1px solid rgba(38,35,29,.38); }
.principle > span { font-size: .68rem; font-weight: 800; }
.principle h3 { margin: 0 0 9px; font-family: Georgia, serif; font-size: 1.65rem; font-weight: 400; }
.principle p { max-width: 530px; margin: 0; line-height: 1.6; }

.invitation { display: grid; grid-template-columns: 1.2fr .8fr; gap: 85px; align-items: end; padding-block: 120px; }
.invitation h2 { max-width: 740px; }
.invitation p { margin: 0 0 26px; font-size: 1.03rem; line-height: 1.72; }
.text-link { display: inline-block; padding-bottom: 6px; border-bottom: 2px solid var(--red); font-size: .76rem; font-weight: 800; letter-spacing: .06em; text-decoration: none; text-transform: uppercase; }

.site-footer { padding: 100px 0 28px; background: var(--ink); color: var(--cream); }
.footer-main { display: grid; grid-template-columns: 1fr auto; gap: 50px; align-items: end; padding-bottom: 78px; }
.footer-main h2 { max-width: 770px; }
.mail-link { display: inline-block; margin-top: 30px; color: var(--yellow); font-family: Georgia, serif; font-size: clamp(1.5rem, 3.5vw, 3.7rem); text-decoration-thickness: 2px; text-underline-offset: 8px; }
.round-link { display: grid; width: 150px; aspect-ratio: 1; background: var(--red); color: white; border-radius: 50%; place-items: center; text-align: center; font-size: .76rem; font-weight: 800; line-height: 1.4; text-decoration: none; transform: rotate(4deg); transition: transform .2s; }
.round-link:hover, .round-link:focus-visible { transform: rotate(0) scale(1.04); }
.legal { display: flex; justify-content: space-between; gap: 25px; padding-top: 22px; border-top: 1px solid #5c5952; color: #c1bdb3; font-size: .7rem; }
.legal div { display: flex; flex-wrap: wrap; gap: 20px; }
.legal a { text-underline-offset: 4px; }

.legal-header { border-bottom: 1px solid var(--line); }
.legal-page { padding: 85px 0 120px; }
.legal-page-header { max-width: 850px; padding-bottom: 55px; border-bottom: 1px solid var(--line); }
.legal-page h1 { max-width: none; margin-bottom: 20px; font-size: clamp(4rem, 9vw, 8rem); }
.legal-page h1 span::after { display: none; }
.legal-page .updated { color: #6b675e; font-size: .75rem; }
.legal-content { display: grid; grid-template-columns: 220px minmax(0, 700px); gap: 70px; padding-top: 58px; }
.legal-toc { align-self: start; position: sticky; top: 25px; }
.legal-toc strong { display: block; margin-bottom: 14px; font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; }
.legal-toc a { display: block; padding: 7px 0; color: #5d5a53; font-size: .8rem; text-decoration: none; }
.legal-copy h2 { margin: 58px 0 18px; font-family: Georgia, serif; font-size: 2rem; letter-spacing: -.025em; }
.legal-copy h2:first-child { margin-top: 0; }
.legal-copy h3 { margin: 30px 0 10px; font-family: Georgia, serif; font-size: 1.25rem; }
.legal-copy p, .legal-copy li { line-height: 1.72; }
.legal-copy ul { padding-left: 20px; }
.legal-copy address { font-style: normal; line-height: 1.7; }
.legal-copy a { text-decoration-color: var(--red); text-underline-offset: 4px; }
.privacy-note { margin: 0 0 38px; padding: 22px; background: var(--sage); border-left: 4px solid var(--red); line-height: 1.6; }
.simple-footer { padding: 30px 0; background: var(--ink); color: var(--cream); }
.simple-footer .wrap { display: flex; justify-content: space-between; gap: 24px; font-size: .72rem; }
.simple-footer div div { display: flex; gap: 20px; }

@media (max-width: 850px) {
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 60px; }
  .hero-card { max-width: 450px; margin-left: 10px; }
  .section-top, .about-grid, .principles-grid, .invitation { grid-template-columns: 1fr; gap: 38px; }
  .inside-grid { grid-template-columns: 1fr; gap: 28px; }
  .portrait-card { width: min(100%, 430px); min-height: 460px; }
  .legal-content { grid-template-columns: 1fr; gap: 20px; }
  .legal-toc { position: static; display: flex; flex-wrap: wrap; gap: 4px 18px; }
  .legal-toc strong { width: 100%; }
  .legal-toc a { display: inline-block; }
}

@media (max-width: 680px) {
  .wrap { width: min(100% - 30px, 1180px); }
  .site-header { min-height: 104px; align-items: flex-start; padding-block: 18px; }
  .site-header nav { max-width: 210px; justify-content: flex-end; flex-wrap: wrap; gap: 12px 18px; }
  .site-header nav a:nth-child(3) { display: none; }
  .hero { gap: 60px; padding-bottom: 90px; }
  h1 { font-size: clamp(3.6rem, 18vw, 6rem); }
  .projects, .about, .principles { padding-block: 90px; }
  .card, .card:nth-child(1), .card:nth-child(2), .card:nth-child(3) { grid-column: 1 / -1; min-height: 460px; }
  .card-copy { padding: 22px; }
  .card h3 { font-size: 2.7rem; }
  .inside-grid { margin-top: 55px; }
  .invitation { padding-block: 90px; }
  .footer-main { grid-template-columns: 1fr; }
  .legal, .simple-footer .wrap { flex-direction: column; }
  .legal-page { padding: 60px 0 90px; }
  .legal-page h1 { font-size: 3.5rem; }
}

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