/* Brand colours, type and spacing can be edited here. */
:root {
  color-scheme: dark;
  --background: #1a1a1a;
  --card: #2a2a2a;
  --accent: #ff8c00;
  --text: #fff;
  --muted: #a1a1aa;
  --border: #30343b;
  --header-height: 224px;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--background);
  line-height: 1.5;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 30px);
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
button, summary, a { -webkit-tap-highlight-color: transparent; }
a, summary { touch-action: manipulation; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 6px; border-radius: 3px; }
img { display: block; max-width: 100%; }
h1, h2, h3, h4, p { margin: 0; }
.accent { color: var(--accent); }
.container { width: min(100%, 1280px); margin-inline: auto; padding-inline: 32px; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 100; padding: 12px 18px; background: white; color: #111; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; background: var(--background); border-bottom: 1px solid var(--accent); }
.header-inner { display: flex; flex-direction: column; align-items: center; padding-block: 24px; gap: 16px; }
.brand { display: inline-flex; align-items: center; justify-content: center; font-size: 36px; font-weight: 700; white-space: nowrap; line-height: 1.12; }
.brand-mark { width: 202.5px; height: 135px; max-width: none; margin-right: -68.4px; object-fit: contain; }
.site-header .brand { transition: transform 200ms ease; }
.site-header .brand:hover { transform: scale(1.03); }
nav { display: flex; gap: 32px; font-weight: 500; color: #d1d5db; }
nav a, .email-link { transition: color 200ms; }
nav a:hover, .email-link:hover { color: var(--accent); }
.hero { min-height: 100svh; min-height: max(100svh, 560px); display: grid; place-items: center; padding: 64px 16px 0; background: linear-gradient(to bottom, #0d0d0d, #151515 55%, var(--background)); }
.hero-content { position: relative; text-align: center; max-width: 1024px; }
.hero h1 { max-width: 768px; margin: 0 auto 32px; font-size: 24px; line-height: 1.35; font-weight: 400; color: #d1d5db; }
.button { display: inline-block; padding: 16px 32px; border-radius: 8px; background: var(--accent); font-weight: 700; font-size: 18px; color: #171717; box-shadow: 0 10px 15px -3px #0002; transition: transform 200ms, background 200ms; }
.button:hover { background: #ff9d1a; transform: translateY(-2px); }
.projects { padding-block: 64px; }
.section-intro { text-align: center; margin-bottom: 48px; }
.section-intro h2 { font-size: 48px; line-height: 1; margin-bottom: 16px; }
.section-intro p { font-size: 18px; color: var(--muted); max-width: 672px; margin-inline: auto; }
.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; align-items: stretch; }
.project-card { display: flex; flex-direction: column; background: var(--card); border-radius: 12px; box-shadow: 0 10px 15px -3px #0002; overflow: clip; min-width: 0; }
.project-front { display: flex; flex-direction: column; flex: 1; }
.project-image { width: 100%; height: 256px; object-fit: cover; }
.project-copy { padding: 24px; flex: 1; }
.project-copy h3 { font-size: 24px; line-height: 1.33; margin-bottom: 12px; }
.project-copy h3 .accent { margin-left: 4px; }
.project-copy p { color: #d1d5db; line-height: 1.625; }
.project-link { display: inline-block; color: var(--accent); margin-top: 20px; }
.project-policy { margin: 0 24px 24px; }
.project-policy summary { padding-top: 16px; border-top: 1px solid #414652; cursor: pointer; color: var(--accent); font-size: 14px; list-style: none; }
.project-policy summary::-webkit-details-marker { display: none; }
.project-policy summary:hover, .project-link:hover, .policy-permalink:hover { color: white; }
.policy-close-label { display: none; }
.project-policy[open] .policy-open-label { display: none; }
.project-policy[open] .policy-close-label { display: inline; }
.project-policy[open] { margin-top: 24px; }
.project-policy[open] summary { border-top: 0; padding-top: 0; }
.project-card:has(.project-policy[open]) .project-front { display: none; }
.project-card:has(.project-policy[open]) { min-height: 520px; }
.policy-copy { padding-top: 20px; color: #d1d5db; font-size: 14px; }
.policy-copy h3 { font-size: 24px; line-height: 1.3; color: white; padding-bottom: 16px; border-bottom: 1px solid #414652; margin-bottom: 16px; }
.policy-copy h4 { font-size: 18px; color: white; margin-block: 16px 8px; }
.policy-copy ul { padding-left: 20px; }
.policy-copy li + li { margin-top: 8px; }
.policy-conclusion { margin-top: 24px; font-weight: 600; color: white; }
.policy-permalink { display: inline-block; margin-top: 16px; color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
.site-footer { padding-block: 48px; border-top: 1px solid var(--border); }
.footer-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.site-footer .brand-mark { width: 166.5px; height: 111px; }
.site-footer .brand { margin-bottom: 16px; }
.site-footer p { color: var(--muted); }
.contact-block h2 { font-size: 18px; margin-bottom: 16px; }
.email-link { display: flex; align-items: center; gap: 8px; color: var(--muted); overflow-wrap: anywhere; }
.email-link svg { flex-shrink: 0; }
.copyright { text-align: center; margin-top: 32px; padding-top: 32px; border-top: 1px solid var(--border); }
.document-page { padding-top: calc(var(--header-height) + 64px); padding-bottom: 64px; min-height: 75svh; }
.document-page > p { margin-block: 24px; }
.document-copy { max-width: 760px; margin-top: 32px; }
.document-copy h1 { font-size: clamp(28px, 5vw, 40px); line-height: 1.2; margin-bottom: 24px; }
.document-copy h2 { font-size: 24px; margin-block: 32px 16px; }
.document-copy li + li { margin-top: 12px; }
.document-copy p, .document-copy li { color: #d1d5db; }
.back-link { color: var(--accent); }
@media (max-width: 767px) {
  :root { --header-height: 168px; }
  .container { padding-inline: 20px; }
  .header-inner { padding-block: 16px; gap: 12px; }
  .brand { font-size: 28px; }
  .brand-mark { width: 150px; height: 100px; margin-right: -50.7px; }
  .hero { padding-top: var(--header-height); min-height: max(80svh, 480px); }
  .hero h1 { font-size: 20px; max-width: 550px; }
  .section-intro h2 { font-size: 36px; }
  .project-grid, .footer-grid { grid-template-columns: 1fr; }
  .project-grid { gap: 24px; }
  .projects { padding-block: 48px; }
  .site-footer .brand-mark { width: 150px; height: 100px; margin-right: -50.7px; }
}
@media (max-width: 400px) {
  .brand { font-size: 24px; }
  .brand-mark, .site-footer .brand-mark { width: 129px; height: 100px; margin-right: -43.6px; }
  .container { padding-inline: 16px; }
  nav { gap: 28px; }
  .project-copy { padding: 20px; }
  .project-policy { margin-inline: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
