:root {
  --ink: #173f46;
  --ink-deep: #0f3036;
  --paper: #f6f1e7;
  --paper-light: #fbf8f1;
  --coral: #e47a5f;
  --sage: #cfddd0;
  --line: rgba(23, 63, 70, 0.18);
  --accent: #e47a5f;
  --surface: #cfddd0;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: "DM Sans", sans-serif; -webkit-font-smoothing: antialiased; }
body.project--raffles { --accent: #b76545; --surface: #d8e3d5; }
body.project--dynamics { --accent: #9a553f; --surface: #eadfd0; }
a { color: inherit; }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
.skip-link { position: fixed; z-index: 20; top: 12px; left: 12px; padding: 10px 16px; border-radius: 99px; background: white; transform: translateY(-150%); }
.skip-link:focus { transform: none; }
.project-header { min-height: 92px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 20px clamp(22px, 5vw, 76px); border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand__mark { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: var(--paper); background: var(--ink); font-family: "Newsreader", serif; font-size: 23px; }
.brand__name { font-size: 19px; font-weight: 700; letter-spacing: -0.045em; text-transform: uppercase; }
.brand__name em { margin-left: 2px; color: var(--coral); font-family: "Newsreader", serif; font-size: 21px; font-weight: 500; text-transform: none; }
.back-link { font-size: 13px; font-weight: 700; text-decoration: none; }
.back-link span { margin-left: 8px; color: var(--accent); }
.project-hero { min-height: calc(100svh - 92px); display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr); border-bottom: 1px solid var(--line); }
.project-hero__copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(76px, 9vw, 140px) clamp(24px, 7vw, 110px); }
.eyebrow { margin: 0 0 28px; color: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; }
h1, h2, h3 { font-family: "Newsreader", serif; font-weight: 500; letter-spacing: -0.045em; }
h1 { max-width: 800px; margin: 0; font-size: clamp(54px, 7vw, 104px); line-height: 0.9; }
h1 em { color: var(--accent); font-weight: 400; }
.intro { max-width: 650px; margin: 34px 0 0; color: rgba(23, 63, 70, 0.7); font-size: clamp(17px, 1.4vw, 20px); line-height: 1.65; }
.project-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 38px; }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 24px; padding: 15px 20px; border: 1px solid var(--ink); border-radius: 99px; font-size: 13px; font-weight: 700; text-decoration: none; transition: transform 0.25s var(--ease), background 0.25s, color 0.25s; }
.button:hover { transform: translateY(-3px); }
.button--primary { color: var(--paper); background: var(--ink); }
.button--primary:hover { background: var(--ink-deep); }
.button--secondary { background: transparent; }
.button--secondary:hover { color: var(--paper); background: var(--ink); }
.project-hero__panel { position: relative; display: flex; align-items: center; justify-content: center; padding: clamp(45px, 7vw, 100px); background: var(--surface); border-left: 1px solid var(--line); overflow: hidden; }
.project-hero__panel::before { position: absolute; content: ""; inset: 0; opacity: 0.16; background-image: radial-gradient(var(--ink) 0.7px, transparent 0.7px); background-size: 9px 9px; }
.project-preview { position: relative; width: min(100%, 470px); padding: 38px; border: 1px solid rgba(23, 63, 70, 0.16); border-radius: 30px; background: rgba(251, 248, 241, 0.88); box-shadow: 0 35px 80px rgba(23, 63, 70, 0.14); }
.project-preview__label { margin: 0 0 30px; color: rgba(23, 63, 70, 0.58); font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.project-preview__rows { display: grid; gap: 14px; }
.project-preview__row { display: grid; grid-template-columns: 42px 1fr; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.project-preview__row:last-child { border-bottom: 0; }
.project-preview__row span { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; color: var(--paper); background: var(--accent); font-family: "Newsreader", serif; font-size: 17px; }
.project-preview__row strong { display: block; font-size: 14px; }
.project-preview__row small { display: block; margin-top: 3px; color: rgba(23, 63, 70, 0.58); font-size: 12px; }
.project-details { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border-bottom: 1px solid var(--line); }
.project-details article { min-height: 330px; padding: clamp(42px, 6vw, 86px); background: var(--paper-light); }
.project-details article > span { color: var(--accent); font-size: 12px; font-weight: 700; }
.project-details h2 { margin: 54px 0 18px; font-size: clamp(33px, 3vw, 48px); line-height: 1; }
.project-details p { margin: 0; color: rgba(23, 63, 70, 0.66); font-size: 15px; line-height: 1.7; }
.project-about { display: grid; grid-template-columns: minmax(280px, 0.8fr) minmax(420px, 1.2fr); gap: clamp(55px, 10vw, 160px); padding: clamp(80px, 11vw, 160px) clamp(24px, 7vw, 110px); }
.project-about h2 { margin: 0; font-size: clamp(48px, 6vw, 84px); line-height: 0.95; }
.project-about__copy > p { margin: 0 0 30px; color: rgba(23, 63, 70, 0.68); font-size: 17px; line-height: 1.7; }
.project-about ul { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.project-about li { padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 14px; font-weight: 700; }
.project-cta { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 32px; padding: clamp(60px, 8vw, 105px) clamp(24px, 7vw, 110px); color: var(--paper); background: var(--ink); }
.project-cta h2 { max-width: 800px; margin: 0; font-size: clamp(42px, 5vw, 72px); line-height: 0.95; }
.project-cta .button { color: var(--paper); border-color: rgba(246, 241, 231, 0.55); }
.project-cta .button:hover { color: var(--ink); background: var(--paper); }
.project-footer { display: flex; justify-content: space-between; gap: 30px; padding: 36px clamp(22px, 5vw, 76px); color: rgba(246, 241, 231, 0.66); background: var(--ink-deep); font-size: 12px; }
.project-footer a { color: var(--paper); }

@media (max-width: 860px) {
  .project-hero { grid-template-columns: 1fr; }
  .project-hero__panel { min-height: 560px; border-top: 1px solid var(--line); border-left: 0; }
  .project-details { grid-template-columns: 1fr; }
  .project-details article { min-height: 0; }
  .project-details h2 { margin-top: 30px; }
  .project-about { grid-template-columns: 1fr; }
  .project-cta { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .project-header { min-height: 78px; padding: 17px 18px; }
  .brand__mark { width: 38px; height: 38px; }
  .brand__name { font-size: 16px; }
  .brand__name em { font-size: 18px; }
  .back-link { max-width: 110px; text-align: right; }
  .project-hero { min-height: 0; }
  .project-hero__copy { padding: 70px 22px 78px; }
  h1 { font-size: clamp(49px, 15vw, 68px); }
  .project-actions { align-items: stretch; flex-direction: column; }
  .button { width: 100%; }
  .project-hero__panel { min-height: 470px; padding: 45px 22px; }
  .project-preview { padding: 28px 24px; }
  .project-details article, .project-about, .project-cta { padding-right: 22px; padding-left: 22px; }
  .project-footer { display: block; padding: 30px 22px; }
}
