:root {
  --ink: #161713;
  --muted: #73746d;
  --line: #dcdcd2;
  --paper: #f4f4ef;
  --surface: #fff;
  --yellow: #e7bb2d;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { min-width: 320px; min-height: 100vh; margin: 0; background-color: var(--paper); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }

.home-page,
.privacy-page { position: relative; overflow-x: hidden; background-image: repeating-linear-gradient(118deg, transparent 0 150px, rgba(22, 23, 19, .052) 150px 151px, transparent 151px 300px), radial-gradient(circle at 88% 18%, rgba(225, 203, 131, .2), transparent 25%), radial-gradient(circle at 5% 82%, rgba(90, 111, 154, .1), transparent 23%); background-attachment: fixed; }

.page-shell { position: relative; z-index: 1; width: min(1400px, calc(100% - 64px)); min-height: 100vh; margin: 0 auto; display: flex; flex-direction: column; }
.site-header { height: 88px; flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.identity { display: inline-flex; align-items: center; gap: 12px; font-size: 22px; font-weight: 720; letter-spacing: -.025em; }
.monogram { display: none; width: 42px; height: 42px; place-items: center; border-radius: 50%; background: var(--ink); color: var(--surface); font-size: 12px; letter-spacing: .06em; }
.contact-link { display: inline-flex; align-items: center; gap: 11px; padding: 14px 22px; border: 1px solid var(--ink); border-radius: 999px; font-size: 15px; font-weight: 720; transition: background-color 160ms ease, color 160ms ease; }
.contact-link:hover { background: var(--ink); color: var(--surface); }
.contact-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--yellow); }
.contact-menu { position: relative; }
.contact-menu summary { list-style: none; cursor: pointer; user-select: none; }
.contact-menu summary::-webkit-details-marker { display: none; }
.contact-menu[open] .contact-link { background: var(--ink); color: var(--surface); }
.contact-popover { position: absolute; z-index: 10; top: calc(100% + 13px); right: 0; width: 290px; padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: 0 20px 55px rgba(22, 23, 19, .15); }
.contact-popover::before { content: ""; position: absolute; top: -6px; right: 28px; width: 11px; height: 11px; border-left: 1px solid var(--line); border-top: 1px solid var(--line); background: var(--surface); transform: rotate(45deg); }
.contact-name { display: block; margin-bottom: 15px; font-size: 17px; font-weight: 760; }
.contact-popover a { display: block; padding: 12px 0; border-top: 1px solid var(--line); }
.contact-popover small { display: block; margin-bottom: 3px; color: var(--muted); font-size: 10px; font-weight: 760; letter-spacing: .11em; text-transform: uppercase; }
.contact-popover strong { font-size: 15px; font-weight: 680; }

.projects { flex: 1; padding: clamp(34px, 5vh, 52px) 0 28px; }
.intro { margin-bottom: clamp(22px, 3.2vh, 32px); }
.eyebrow { margin: 0 0 11px; color: #62645d; font-size: 16px; font-weight: 760; letter-spacing: .15em; text-transform: uppercase; }
.home-page h1 { max-width: 760px; margin: 0; font-size: clamp(42px, 4.45vw, 62px); font-weight: 660; letter-spacing: -.06em; line-height: .96; }
.project-list { display: grid; gap: 10px; }
.project-card { --accent: #273f78; position: relative; min-height: clamp(120px, 14vh, 146px); display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 24px 32px; overflow: hidden; border: 1px solid var(--line); border-radius: 15px; background: rgba(255, 255, 255, .9); box-shadow: 0 1px 0 rgba(22, 23, 19, .02); transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease; }
.project-card::before { content: ""; position: absolute; top: 24px; bottom: 24px; left: 0; width: 4px; border-radius: 0 4px 4px 0; background: var(--accent); opacity: .82; transition: top 180ms ease, bottom 180ms ease, opacity 180ms ease; }
.project-card--dubau { --accent: #bb1e3f; }
.project-card--sk { --accent: #273d92; }
.project-card:hover { transform: translateY(-2px); border-color: #bbbcb2; box-shadow: 0 14px 34px rgba(23, 23, 20, .065); }
.project-card:hover::before { top: 16px; bottom: 16px; opacity: 1; }
.project-main { display: flex; align-items: center; gap: clamp(20px, 3vw, 38px); min-width: 0; }
.project-card h2 { margin: 0 0 5px; font-size: clamp(25px, 2.6vw, 38px); font-weight: 620; letter-spacing: -.045em; line-height: 1; }
.project-card p { margin: 0; color: var(--muted); font-size: 13px; }
.project-link { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 10px; color: #62635d; font-size: 12px; font-weight: 760; }
.project-arrow { width: 20px; height: 20px; fill: none; stroke: var(--ink); stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; transition: transform 180ms ease; }
.project-card:hover .project-arrow { transform: translate(2px, -2px); }

footer { min-height: 58px; flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
footer a { border-bottom: 1px solid transparent; }
footer a:hover { color: var(--ink); border-color: currentColor; }

.privacy { flex: 1; padding: clamp(46px, 6vw, 78px) 0 72px; }
.privacy-hero { max-width: 900px; margin-bottom: clamp(44px, 5vw, 62px); }
.privacy h1 { max-width: 920px; font-size: clamp(46px, 6.6vw, 88px); line-height: .95; }
.privacy-layout { display: grid; grid-template-columns: minmax(240px, .7fr) minmax(0, 1.65fr); gap: clamp(48px, 8vw, 120px); align-items: start; }
.privacy-summary { position: sticky; top: 28px; padding-top: 22px; border-top: 3px solid var(--ink); }
.summary-label,
.section-label { margin: 0 0 11px; color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.privacy-summary h2 { margin: 0 0 22px; font-size: 28px; letter-spacing: -.04em; }
.privacy-summary > p:not(.summary-label):not(.privacy-note) { margin: 0 0 8px; color: var(--muted); line-height: 1.6; }
.privacy-summary > a { display: table; margin-top: 8px; font-weight: 750; border-bottom: 1px solid var(--ink); }
.privacy-note { margin: 34px 0 0; padding: 18px 0 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; line-height: 1.6; }
.privacy-content { border-top: 1px solid var(--line); }
.privacy-section { display: grid; grid-template-columns: minmax(115px, .4fr) minmax(220px, .75fr) minmax(300px, 1.2fr); gap: 26px; align-items: start; padding: 30px 0 34px; border-bottom: 1px solid var(--line); }
.privacy-section h2 { margin: -3px 0 0; font-size: clamp(21px, 2vw, 28px); letter-spacing: -.035em; line-height: 1.15; }
.privacy-section p:last-child { margin: -4px 0 0; color: var(--muted); line-height: 1.75; }
.privacy-section--rights { margin-top: 18px; padding: 28px 30px 30px; border: 0; border-radius: 14px; background: rgba(255, 255, 255, .72); box-shadow: inset 3px 0 0 var(--yellow); }

@media (max-width: 900px) {
  .privacy-layout { grid-template-columns: 1fr; gap: 44px; }
  .privacy-summary { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 30px; }
  .privacy-summary .summary-label,
  .privacy-summary .privacy-note { grid-column: 1 / -1; }
  .privacy-summary h2 { margin-bottom: 0; }
  .privacy-summary > p:not(.summary-label):not(.privacy-note) { align-self: end; }
}

@media (max-width: 640px) {
  .home-page,
  .privacy-page { background-image: repeating-linear-gradient(122deg, transparent 0 88px, rgba(22, 23, 19, .05) 88px 89px, transparent 89px 176px), radial-gradient(circle at 100% 18%, rgba(225, 203, 131, .2), transparent 30%), radial-gradient(circle at 0 76%, rgba(90, 111, 154, .1), transparent 25%); background-attachment: scroll; }
  .page-shell { width: min(100% - 28px, 1400px); }
  .site-header { height: 82px; }
  .identity { gap: 10px; font-size: 18px; }
  .monogram { width: 36px; height: 36px; display: grid; }
  .contact-link { padding: 10px 14px; font-size: 14px; }
  .contact-popover { width: min(290px, calc(100vw - 28px)); padding: 20px; }
  .projects { padding: 32px 0 26px; }
  .intro { margin-bottom: 24px; }
  .eyebrow { margin-bottom: 9px; font-size: 14px; }
  .home-page h1 { font-size: clamp(36px, 11.2vw, 46px); line-height: .98; }
  .project-card { min-height: 124px; gap: 12px; padding: 22px 20px; border-radius: 15px; }
  .project-card::before { top: 22px; bottom: 22px; }
  .project-main { gap: 15px; }
  .project-card h2 { font-size: clamp(23px, 7.2vw, 30px); }
  .project-card p { font-size: 12px; }
  .project-link-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .project-arrow { width: 21px; height: 21px; }
  footer { min-height: 76px; align-items: flex-start; flex-direction: column; justify-content: center; gap: 7px; padding: 16px 0; }
  .privacy { padding: 38px 0 58px; }
  .privacy-hero { margin-bottom: 42px; }
  .privacy h1 { font-size: clamp(40px, 13vw, 56px); }
  .privacy-layout { gap: 36px; }
  .privacy-summary { display: block; padding-top: 18px; }
  .privacy-summary h2 { margin-bottom: 18px; font-size: 25px; }
  .privacy-note { margin-top: 28px; }
  .privacy-section { display: block; padding: 24px 0 27px; }
  .privacy-section h2 { margin: 0 0 12px; font-size: 24px; }
  .privacy-section p:last-child { margin: 0; font-size: 15px; line-height: 1.65; }
  .privacy-section--rights { margin: 16px 0 0; padding: 24px 22px 25px; }
}

@media (max-width: 380px) {
  .identity { font-size: 17px; }
  .contact-link { gap: 7px; padding: 9px 12px; font-size: 13px; }
  .project-card { padding-inline: 14px; }
  .project-main { gap: 12px; }
  .project-card h2 { font-size: 21px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .project-card,
  .project-card::before,
  .project-arrow { transition: none; }
}
