/* Contact page: same type and palette as the case studies (Hanken Grotesk, white page, charcoal ink) */
:root {
  --ink: #1b1a17;
  --ink-2: #57544c;
  --paper: #ffffff;
  --line: rgba(27, 26, 23, 0.14);
  --accent: #D92D20;
  --f: "Hanken Grotesk", system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { background: var(--paper); color: var(--ink); font-family: var(--f); font-size: 17px; line-height: 1.55; }
a { color: inherit; }
em { font-style: normal; color: var(--ink-2); font-weight: 400; }
[hidden] { display: none !important; }

/* header */
.c-header { position: fixed; inset: 0 0 auto; z-index: 50; display: flex; justify-content: space-between; align-items: center; padding: 18px var(--gutter); pointer-events: none; }
.pill {
  pointer-events: auto; text-decoration: none; font-weight: 600; font-size: 13px; letter-spacing: 0.02em;
  padding: 8px 15px; border-radius: 999px; background: rgba(255, 255, 255, 0.88); color: var(--ink);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 0 0 1px var(--line);
}
.c-crumb { font-weight: 500; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; }
.pill-line { background: var(--ink); color: #fff; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.16); }   /* the faint edge keeps it visible over dark sections */
.pill:hover { background: var(--ink); color: #fff; }

/* hero */
.c-hero { padding: 20vh var(--gutter) clamp(60px, 8vw, 110px); }
.c-title { font-weight: 500; font-size: clamp(72px, 14vw, 240px); line-height: 0.88; letter-spacing: -0.06em; margin-left: -0.04em; }
.c-lede { margin-top: clamp(22px, 3vw, 36px); max-width: 34rem; text-wrap: pretty; font-size: clamp(19px, 1.6vw, 24px); line-height: 1.4; color: #3a3833; }
.c-email-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: clamp(32px, 4vw, 56px); }
.c-email {
  font-weight: 500; font-size: clamp(28px, 4.4vw, 72px); line-height: 1; letter-spacing: -0.04em; text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; transition: background-size 0.4s ease, color 0.2s ease; padding-bottom: 6px;
}
.c-email:hover, .c-email:focus-visible { background-size: 100% 2px; color: var(--accent); }
.c-copy {
  font: 600 13px/1 var(--f); letter-spacing: 0.02em; cursor: pointer; border: 0;
  padding: 11px 18px; border-radius: 999px; background: var(--ink); color: #fff; transition: background 0.2s ease;
}
.c-copy:hover { background: var(--accent); }
.c-copy.is-done { background: #2f7a4f; }

/* form + details */
.c-grid {
  display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px);
  padding: clamp(50px, 7vw, 100px) var(--gutter); border-top: 1px solid var(--line);
}
.c-h2 { font-weight: 500; font-size: clamp(30px, 3vw, 46px); line-height: 1; letter-spacing: -0.04em; }
.c-note { margin-top: 12px; color: var(--ink-2); font-size: 15px; max-width: 34rem; }
.c-form { display: flex; flex-direction: column; gap: 22px; }
.c-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 10px; }
.c-field { display: flex; flex-direction: column; gap: 8px; font-weight: 600; font-size: 14px; }
.c-field input, .c-field textarea {
  font: 400 17px/1.4 var(--f); color: var(--ink); background: #f6f5f2; border: 1px solid transparent; border-radius: 12px;
  padding: 14px 16px; transition: border-color 0.2s ease, background 0.2s ease; resize: vertical;
}
.c-field input:focus, .c-field textarea:focus { outline: none; border-color: var(--ink); background: #fff; }
.c-field textarea::placeholder { color: #8a867c; }
.c-chips { border: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.c-chips legend { font-weight: 600; font-size: 14px; margin-bottom: 10px; }
.c-chips label { position: relative; cursor: pointer; }
.c-chips input { position: absolute; opacity: 0; pointer-events: none; }
.c-chips span { display: inline-block; font-weight: 500; font-size: 15px; padding: 10px 16px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--line); transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease; }
.c-chips label:hover span { box-shadow: inset 0 0 0 1.5px var(--ink); }
.c-chips input:checked + span { background: var(--ink); color: #fff; box-shadow: none; }
.c-chips input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.c-error { color: var(--accent); font-weight: 600; font-size: 15px; }
.c-send {
  align-self: flex-start; font: 600 17px/1 var(--f); cursor: pointer; border: 0;
  padding: 18px 28px; border-radius: 999px; background: var(--accent); color: #fff; transition: background 0.2s ease;
}
.c-send span { display: inline-block; transition: transform 0.3s ease; }
.c-send:hover { background: #B8231A; }
.c-send:hover span { transform: translateX(5px); }
.c-send:focus-visible, .c-copy:focus-visible, .pill:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.c-details { display: flex; flex-direction: column; gap: 34px; padding-top: 6px; }
.c-block { border-top: 1px solid var(--ink); padding-top: 14px; display: flex; flex-direction: column; gap: 6px; }
.c-label { font-weight: 500; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-2); }
.c-link { font-weight: 600; font-size: 19px; text-decoration: none; }
.c-link:hover { color: var(--accent); }
.c-time { color: var(--ink-2); font-size: 15px; font-variant-numeric: tabular-nums; }
.c-links { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.c-links a { font-weight: 600; font-size: 19px; text-decoration: none; }
.c-links a:hover { color: var(--accent); }

.c-footer { display: flex; justify-content: space-between; gap: 16px; padding: 28px var(--gutter) 40px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-2); }
.c-footer a { text-decoration: none; font-weight: 600; color: var(--ink); }

/* grain */
.grain {
  position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: 0.06;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 0.8s steps(4) infinite;
}
@keyframes grain { 0%, 100% { transform: translate(0, 0); } 25% { transform: translate(-3%, 2%); } 50% { transform: translate(2%, -3%); } 75% { transform: translate(-2%, -1%); } }

@media (max-width: 820px) {
  .c-crumb { display: none; }
  .c-hero { padding-top: 16vh; }
  .c-grid { grid-template-columns: 1fr; }
  .c-row { grid-template-columns: 1fr; }
  .c-email { font-size: clamp(24px, 7.4vw, 40px); }
}
@media (prefers-reduced-motion: reduce) {
  .grain { animation: none; }
  .c-email, .c-send span, .c-copy, .c-chips span { transition: none; }
}
