/* Grey Shore Systems homepage. Warm off-white ground, warm near-black ink, one pale blue accent, mono labels. Host Grotesk + JetBrains Mono. */

:root {
  --bg: #ecebe5;
  --paper: #faf9f6;
  --white: #ffffff;
  --rule: rgba(31, 26, 23, .14);
  --rule-soft: rgba(31, 26, 23, .08);
  --ink: #1f1a17;
  --muted: #6b625b;
  --dim: #8c837a;
  --blue: #2b5cf0;
  --pale: #c9d4f5;
  --pale-deep: #b3c3f1;
  --dark: #292521;
  --dark-2: #342f2a;
  --on-dark: #f3efe8;
  --on-dark-muted: rgba(243, 239, 232, .72);

  --sans: 'Host Grotesk', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --wrap: 1280px;
  --margin: clamp(16px, 2.6vw, 44px);
  --r: 6px;
  --display: clamp(44px, 6.2vw, 88px);
  --h2: clamp(30px, 3.4vw, 46px);
  --h3: clamp(20px, 1.6vw, 24px);
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }
html { color-scheme: light; scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { font-weight: 500; text-wrap: balance; }
::selection { background: var(--pale); color: var(--ink); }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--margin); }
.section { padding-block: clamp(72px, 9vw, 140px) 0; }
.mono { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.mono.small { font-size: 10px; }
h1 { font-size: var(--display); line-height: 1; letter-spacing: -.02em; }
h2 { font-size: var(--h2); line-height: 1.08; letter-spacing: -.02em; max-width: 22ch; }
h3 { font-size: var(--h3); line-height: 1.2; letter-spacing: -.01em; }
.dim { color: var(--dim); }
.center { text-align: center; max-width: none; }
.lead { font-size: clamp(18px, 1.4vw, 21px); line-height: 1.45; color: var(--muted); max-width: 44ch; }
.sub { color: var(--muted); max-width: 58ch; font-size: 17px; line-height: 1.5; }
.section-head { display: grid; gap: 14px; margin-bottom: clamp(28px, 3.5vw, 48px); }
.muted { color: var(--muted); }

/* Buttons: square, dark, an arrow */
.btn { display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 20px; border-radius: var(--r); font-weight: 500; font-size: 15px; white-space: nowrap; transition: background .18s ease, color .18s ease, border-color .18s ease; border: 1px solid transparent; }
.btn .arr { font-size: 16px; transition: transform .2s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }
.btn-small { height: 40px; padding: 0 16px; font-size: 14px; }
.btn-dark { background: var(--ink); color: var(--on-dark); }
.btn-dark:hover { background: var(--dark-2); }
.btn-line { background: transparent; color: var(--ink); border-color: var(--rule); }
.btn-line:hover { border-color: var(--ink); }
.btn-pale { background: var(--pale); color: var(--ink); }
.btn-pale:hover { background: var(--pale-deep); }
.btn-light { background: var(--on-dark); color: var(--ink); }
.btn-light:hover { background: #fff; }
.btn-line-light { background: transparent; color: var(--on-dark); border-color: rgba(243, 239, 232, .35); }
.btn-line-light:hover { border-color: var(--on-dark); }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Nav: a floating bar */
.nav { position: sticky; top: 12px; z-index: 50; padding-inline: var(--margin); }
.nav-bar { max-width: calc(var(--wrap) - var(--margin) * 2); margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 60px; padding: 0 12px 0 18px; background: rgba(250, 249, 246, .92); border: 1px solid var(--rule-soft); border-radius: var(--r); backdrop-filter: blur(10px); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 17px; letter-spacing: -.01em; white-space: nowrap; }
/* The G mark, as a mask so it takes the text colour wherever it sits */
.gmark { display: inline-block; width: 26px; height: 28px; background: currentColor; -webkit-mask: url(/assets/brand/g-mark.png) center / contain no-repeat; mask: url(/assets/brand/g-mark.png) center / contain no-repeat; vertical-align: -5px; }
.nav-links { display: flex; gap: 26px; font-size: 14px; color: var(--ink); }
.nav-links a { min-height: 44px; display: inline-flex; align-items: center; transition: color .18s; }
.nav-links a:hover { color: var(--blue); }

/* Hero: copy left, the line-drawn stack right */
.hero { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(24px, 4vw, 64px); align-items: center; padding-top: clamp(40px, 6vw, 88px); padding-bottom: clamp(40px, 5vw, 72px); }
.hero-copy { display: grid; gap: 24px; }
.hero h1 { max-width: 12ch; }
.hero .actions { margin-top: 4px; }
.hero-art { justify-self: end; width: 100%; max-width: 690px; }
.flow { width: 100%; height: auto; }
.flow .still { display: none; }
@media (prefers-reduced-motion: reduce) { .flow .mv { display: none; } .flow .still { display: block; } }

/* Built for: logos in dashed cells */
.clients { border-top: 1px solid var(--rule-soft); border-bottom: 1px solid var(--rule-soft); background: var(--paper); }
.clients-grid { display: grid; gap: 14px; padding-block: 22px 26px; }
.logo-cells { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 10px; }
.logo-cells li { height: 64px; display: grid; place-items: center; border: 1px dashed var(--rule); border-radius: 2px; padding: 0 12px; }
.logo-cells img { height: 28px; width: auto; max-width: 100%; object-fit: contain; transition: opacity .4s ease; }
.logo-cells .slot.swap img { opacity: 0; }
.logo-cells .slot:nth-child(n+8) { display: none; }
.logo-cells .more a { color: var(--muted); }
.logo-cells .more a:hover { color: var(--ink); }

/* Problem: three cards with a folded tab */
.problem h2 { margin-bottom: clamp(28px, 3.5vw, 48px); }
.cards3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.pcard { position: relative; background: var(--paper); border: 1px solid var(--rule-soft); padding-top: 44px; display: grid; gap: 12px; padding-bottom: 24px; }
.pcard > h3, .pcard > p, .pcard > .chips { padding-inline: 22px; }
.pcard h3 { margin-top: 10px; }
.pcard p { color: var(--muted); font-size: 15px; }
.tab { position: absolute; top: 0; left: 0; height: 44px; display: inline-flex; align-items: center; gap: 12px; padding: 0 44px 0 18px; background: var(--dark); color: var(--on-dark); font-size: 14px; clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 100%, 0 100%); }
.tab .num { color: var(--on-dark-muted); }
.tab-dark { position: static; background: var(--dark); color: var(--on-dark); height: 40px; padding: 0 40px 0 24px; margin: 0 0 -1px 0; }
.tab-dark .mono { color: var(--on-dark-muted); }
.cover { background: var(--bg); border-block: 1px solid var(--rule-soft); }
.cover svg, .cover img { width: 100%; height: auto; display: block; }
.cover img { aspect-ratio: 4 / 3; object-fit: cover; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips li { font-size: 12px; color: var(--muted); border: 1px solid var(--rule); border-radius: 3px; padding: 3px 8px; background: var(--white); }

/* Compare: two panels */
.panels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 12px; background: var(--white); border: 1px solid var(--rule-soft); }
.panel { padding: clamp(20px, 2.4vw, 32px); display: grid; gap: 10px; align-content: start; min-height: 440px; }
.panel.grey { background: var(--bg); }
.panel.blue { background: var(--pale); }
.tags { display: flex; gap: 8px; margin-bottom: 8px; }
.tag { font-size: 12px; border: 1px solid var(--rule); border-radius: 999px; padding: 3px 10px; background: rgba(255, 255, 255, .6); display: inline-flex; align-items: center; gap: 6px; }
.panel h3 { font-size: clamp(20px, 1.8vw, 26px); }
.panel .muted { font-size: 15px; }
.ledger { margin-top: 18px; background: var(--paper); border-radius: 18px; padding: 22px; box-shadow: 0 0 0 6px rgba(255, 255, 255, .5); display: grid; gap: 14px; }
.ledger-head { font-size: 16px; display: flex; align-items: center; gap: 10px; }
.pill { font-family: var(--mono); font-size: 14px; border: 1px dashed var(--rule); padding: 2px 8px; border-radius: 6px; }
.pill.accent { border-style: solid; background: var(--pale); border-color: var(--pale-deep); }
.ledger ul { display: grid; gap: 8px; }
.ledger li { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 15px; }
.ledger li > span:first-child { border: 1px solid var(--rule); border-radius: 6px; padding: 5px 10px; background: var(--white); }
.ledger li .mono { font-size: 11px; }
.ledger li:nth-child(n+4) { opacity: .6; }

/* The conversation on a dotted ground: a chat anyone recognises, slow enough to read */
.decision-wrap { margin-top: 12px; padding: clamp(28px, 4vw, 56px); background: var(--bg) radial-gradient(rgba(31, 26, 23, .16) 1px, transparent 1.2px) 0 0 / 14px 14px; border: 1px solid var(--rule-soft); }
.chat { max-width: 720px; margin-inline: auto; background: var(--paper); border: 1px solid var(--rule-soft); border-radius: 20px; box-shadow: 0 24px 60px -36px rgba(31, 26, 23, .5); display: grid; overflow: hidden; }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 14px 20px; border-bottom: 1px solid var(--rule-soft); font-size: 15px; font-weight: 500; }
.chat-head .mono { margin-left: auto; font-weight: 400; }
.amark { width: 28px; height: 28px; border-radius: 8px; background: var(--ink); position: relative; flex-shrink: 0; }
.amark::after { content: ""; position: absolute; inset: 6px; background: var(--pale); -webkit-mask: url(/assets/brand/g-mark.png) center / contain no-repeat; mask: url(/assets/brand/g-mark.png) center / contain no-repeat; }
.msgs { display: grid; gap: 16px; padding: 22px 20px 20px; min-height: 300px; align-content: start; }
.m { font-size: 16px; line-height: 1.5; }
.m.me { justify-self: end; max-width: 80%; background: var(--pale); border-radius: 18px 18px 6px 18px; padding: 12px 16px; }
.m.ai { display: grid; grid-template-columns: 28px 1fr; gap: 14px; align-items: start; max-width: 92%; }
.m.ai > div { display: grid; gap: 14px; padding-top: 3px; }
.m.ai .text { min-height: 1.5em; max-width: 54ch; }
.thinking { color: var(--muted); font-size: 15px; }
.thinking .dots::after { content: "..."; display: inline-block; width: 1.4em; text-align: left; animation: dots 1.4s steps(4) infinite; }
@keyframes dots { 0% { content: ""; } 25% { content: "."; } 50% { content: ".."; } 75% { content: "..."; } }
.after { display: grid; gap: 12px; transition: opacity .6s ease, transform .6s var(--ease); }
.chat.is-typing .after { opacity: 0; transform: translateY(6px); }
.chat.is-typing .text::after { content: "\2588"; margin-left: 2px; color: var(--blue); animation: blink 1s steps(2) infinite; }
.chat.is-typing .text:empty::after { content: none; }
@keyframes blink { 50% { opacity: 0; } }
.checked { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.checked .chips li { background: var(--bg); border-color: transparent; }
.wait { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding-top: 4px; border-top: 1px dashed var(--rule); margin-top: 2px; padding-top: 14px; font-size: 14px; color: var(--muted); }
.composer { border-top: 1px solid var(--rule-soft); padding: 12px 16px 16px; }
.composer span { display: block; border: 1px solid var(--rule); border-radius: 999px; padding: 11px 18px; color: var(--dim); font-size: 15px; }
.statement { margin-top: 28px; font-size: clamp(18px, 1.6vw, 22px); line-height: 1.4; max-width: 60ch; }

/* Big statement with crop marks */
.big .crop { position: relative; padding: clamp(56px, 8vw, 120px) var(--margin); text-align: center; border: 1px solid var(--rule-soft); background: var(--paper); }
.big .crop::before, .big .crop::after { content: ""; position: absolute; width: 8px; height: 8px; background: var(--blue); }
.big .crop::before { top: -4px; left: 50%; margin-left: -4px; }
.big .crop::after { bottom: -4px; left: 50%; margin-left: -4px; }
.big .crop p { font-size: clamp(36px, 5.6vw, 80px); line-height: 1; letter-spacing: -.03em; font-weight: 500; max-width: 16ch; margin-inline: auto; text-wrap: balance; }

/* Effort chart */
.effort-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.effort-copy { display: grid; gap: 16px; }
.chart { display: grid; gap: 10px; }
.legend { display: flex; gap: 24px; font-size: 13px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.sw { display: inline-block; width: 10px; height: 10px; }
.sw.grey { background: #9c948b; }
.sw.blue { background: var(--blue); }
.chart svg { width: 100%; height: auto; }
.axis { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.axis li { border-top: 1px solid var(--rule); padding-top: 8px; font-size: 10px; }

/* Security: one dark card with the pixel padlock */
.dark-card { background: var(--dark); color: var(--on-dark); }
.dark-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 4vw, 64px); padding: clamp(28px, 4vw, 56px); align-items: center; }
.dark-copy { display: grid; gap: 22px; }
.dark-copy h2 { color: var(--on-dark); }
.dark-copy .dim { color: rgba(243, 239, 232, .55); }
.dark-copy p { color: var(--on-dark-muted); max-width: 46ch; }
.lock-grid { border: 1px solid rgba(243, 239, 232, .14); background-image: linear-gradient(rgba(243, 239, 232, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(243, 239, 232, .06) 1px, transparent 1px); background-size: 28px 28px; padding: 24px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; }
.lock-grid svg { width: min(100%, 340px); height: auto; justify-self: center; }
.callouts { display: grid; gap: 10px; align-content: center; }
.callouts li { display: grid; gap: 2px; background: rgba(41, 37, 33, .92); border: 1px solid rgba(243, 239, 232, .16); padding: 8px 12px; font-size: 12px; color: var(--on-dark-muted); max-width: 230px; }
.callouts .mono { color: #8fb0ff; font-size: 10px; }
.callouts b { color: var(--on-dark); font-weight: 500; }

/* Work: a rail of photo cards */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(360px, 420px); gap: 16px; overflow-x: auto; padding: 28px var(--margin) 16px; scroll-snap-type: x mandatory; scrollbar-width: thin; scroll-padding-inline: var(--margin); }
.wcard { scroll-snap-align: start; display: grid; gap: 12px; align-content: start; }
.wcard > .mono { display: inline-flex; align-items: center; gap: 8px; }
.wcard .shot { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper); border: 1px solid var(--rule-soft); }
.wcard .shot img { width: 100%; height: 100%; object-fit: cover; object-position: top left; transition: transform .6s var(--ease); }
.wcard:hover .shot img { transform: scale(1.03); }
.wcard h3 { font-size: clamp(18px, 1.5vw, 22px); font-weight: 500; letter-spacing: -.01em; line-height: 1.2; margin-top: 2px; }
.wcard > p:last-child { color: var(--muted); font-size: 15px; border-left: 1px solid var(--rule); padding-left: 14px; }
.all-work { margin-top: 20px; }

/* Three kinds, four steps */
.threes, .steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; border-top: 1px solid var(--rule); }
.steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.threes li, .steps li { display: grid; gap: 10px; padding-top: 20px; border-top: 1px solid transparent; }
.threes li p, .steps li p { color: var(--muted); font-size: 15px; }

/* Questions */
.faq-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.faq-list details { border-top: 1px solid var(--rule); }
.faq-list details:last-child { border-bottom: 1px solid var(--rule); }
summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 24px; min-height: 44px; padding: 18px 0; font-size: 17px; font-weight: 500; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-weight: 400; font-size: 22px; color: var(--muted); flex-shrink: 0; transition: transform .2s var(--ease); }
details[open] summary::after { transform: rotate(45deg); }
details p { padding: 0 0 20px; color: var(--muted); max-width: 60ch; font-size: 15px; }

/* Close: dark, dotted at the edges */
.close { margin-top: clamp(72px, 9vw, 140px); background: var(--dark) radial-gradient(rgba(243, 239, 232, .12) 1px, transparent 1.2px) 0 0 / 12px 12px; color: var(--on-dark); position: relative; }
.close::before { content: ""; position: absolute; inset: 0 12% ; background: var(--dark); pointer-events: none; }
.close-inner { position: relative; display: grid; justify-items: center; text-align: center; gap: 28px; padding-block: clamp(80px, 11vw, 160px); }
.close h2 { color: var(--on-dark); font-size: clamp(36px, 5vw, 68px); max-width: 16ch; }
.close .dim { color: rgba(243, 239, 232, .5); }

/* Footer: dark, the name giant */
.footer { background: var(--dark); color: var(--on-dark); border-top: 1px solid rgba(243, 239, 232, .12); }
.footer-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; padding-block: 48px 24px; }
.footer-grid div { display: grid; gap: 8px; align-content: start; font-size: 14px; }
.footer-grid .mono { color: rgba(243, 239, 232, .62); margin-bottom: 4px; }
.footer-grid a:hover { color: #8fb0ff; }
.giant { font-size: clamp(64px, 15vw, 220px); line-height: .9; letter-spacing: -.04em; font-weight: 600; color: rgba(243, 239, 232, .14); padding-block: 12px 0; white-space: nowrap; }
.giant .gmark { width: .78em; height: .82em; vertical-align: -.08em; margin-right: .12em; }
.footer-legal { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; padding-block: 18px 28px; color: rgba(243, 239, 232, .62); font-size: 11px; }

/* Access */
.skip { position: fixed; z-index: 100; top: -100px; left: 16px; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: var(--r); }
.skip:focus { top: 12px; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }

/* Motion: a quiet rise, once, below the fold */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .8s var(--ease); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn .arr, .wcard .shot img, .logo-cells img, .after { transition: none; }
  .thinking .dots::after, .chat.is-typing .text::after { animation: none; }
}

/* Responsive */
@media (max-width: 1100px) {
  .logo-cells { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .logo-cells .slot:nth-child(n+6) { display: none; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .effort-grid, .dark-grid { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  :root { --display: clamp(40px, 11vw, 60px); --h2: clamp(28px, 7.4vw, 40px); }
  .nav { top: 8px; }
  .nav-bar { padding-left: 14px; }
  .brand { font-size: 15px; gap: 8px; }
  .nav-links { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 32px; }
  .hero h1 { max-width: none; }
  .hero-art { justify-self: stretch; max-width: none; }
  .actions .btn { flex: 1 1 auto; justify-content: center; }
  .logo-cells { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .logo-cells .slot:nth-child(n+6) { display: none; }
  .cards3, .panels, .threes, .steps, .faq-grid, .footer-grid { grid-template-columns: 1fr; }
  .panel { min-height: 0; }
  .decision-wrap { padding: 12px; }
  .m.me { max-width: 92%; }
  .m.ai { max-width: 100%; }
  .rail { grid-auto-columns: 82vw; }
  .lock-grid { grid-template-columns: 1fr; }
  .close::before { inset: 0 6%; }
  .big .crop p { font-size: clamp(32px, 9vw, 48px); }
}
