/* Chilldigi — Mineral Noon
   Staatiline port GPT proto globals.css-ist (1:1). */

@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("assets/fonts/geist-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("assets/fonts/geist-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("assets/fonts/geist-mono-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("assets/fonts/geist-mono-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --limestone: #eee6d4;
  --paper: #f7f2e8;
  --navy: #101e2b;
  --mineral: #2d7fa4;
  --ice: #dce8e8;
  --lemon: #dfff38;
  --line: rgba(16, 30, 43, 0.2);
  --white-line: rgba(247, 242, 232, 0.22);
  --font-sans: "Geist", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* Proto jooksis Tailwindi preflight'i peal — sama nulling siin. */
*,
*::before,
*::after {
  box-sizing: border-box;
}

h1,
h2,
h3,
p {
  margin: 0;
}

button,
input,
select,
textarea {
  margin: 0;
  font: inherit;
  color: inherit;
}

summary {
  list-style: none;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  background: var(--limestone);
  color: var(--navy);
  font-family: var(--font-sans);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a,
summary {
  -webkit-tap-highlight-color: transparent;
}

::selection {
  background: var(--lemon);
  color: var(--navy);
}

.site-shell {
  min-width: 320px;
  overflow: clip;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 12px 18px;
  background: var(--navy);
  color: var(--paper);
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 112px;
  padding: 0 46px;
  border-bottom: 0;
  background: var(--limestone);
}

.brand-link {
  width: max-content;
}

.brand-reference {
  display: block;
  width: 226px;
  height: 64px;
  background-image: url("assets/mineral-noon-reference.png");
  background-position: -42px -24px;
  background-repeat: no-repeat;
  background-size: 1440px 900px;
}

.site-header .brand-link {
  margin-left: -4px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: clamp(46px, 4vw, 64px);
  font-size: 16px;
  font-weight: 450;
  transform: translateX(42px);
}

.desktop-nav a,
.text-link,
.back-to-top {
  position: relative;
}

.desktop-nav a::after,
.text-link::after,
.back-to-top::after {
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 2px;
  background: var(--lemon);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.desktop-nav a:hover::after,
.desktop-nav a:focus-visible::after,
.text-link:hover::after,
.text-link:focus-visible::after,
.back-to-top:hover::after,
.back-to-top:focus-visible::after {
  transform: scaleX(1);
}

.header-right {
  display: flex;
  align-items: center;
  gap: clamp(22px, 2.2vw, 34px);
  justify-self: end;
}

.lang-pair {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 550;
  letter-spacing: 0.08em;
}

.lang-pair span {
  color: rgba(16, 30, 43, 0.35);
}

.lang-pair a {
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
  color: rgba(16, 30, 43, 0.5);
  transition: color 160ms ease;
}

.lang-pair a.is-active {
  color: var(--navy);
  border-bottom-color: var(--lemon);
}

.lang-pair a:hover,
.lang-pair a:focus-visible {
  color: var(--navy);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: end;
  min-width: 203px;
  min-height: 52px;
  padding: 0 24px;
  border: 1px solid var(--navy);
  background: transparent;
  color: var(--navy);
  cursor: pointer;
  font: inherit;
  font-size: 16px;
  font-weight: 450;
  gap: 0;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.header-cta:hover,
.header-cta:focus-visible {
  background: var(--navy);
  color: var(--paper);
  transform: translateY(-2px);
}

.arrow {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  transition: transform 180ms ease;
}

.arrow path {
  stroke: currentColor;
  stroke-linecap: square;
  stroke-linejoin: miter;
  stroke-width: 1.7;
}

.arrow-diagonal {
  transform: rotate(-45deg);
}

a:hover .arrow:not(.arrow-diagonal) {
  transform: translateX(4px);
}

a:hover .arrow-diagonal {
  transform: rotate(-45deg) translateX(3px);
}

.lang-switch {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.mobile-menu {
  display: none;
}

.hero {
  position: relative;
  height: 788px;
  min-height: 788px;
  overflow: hidden;
  border-bottom: 8px solid var(--lemon);
  background: var(--limestone);
}

.hero-copy {
  position: absolute;
  z-index: 2;
  top: 113px;
  left: clamp(42px, 3.3vw, 48px);
  width: 650px;
  padding: 0;
}

.eyebrow,
.section-label {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 550;
  letter-spacing: 0.2em;
  line-height: 1.4;
}

.register-line {
  display: block;
  width: 42px;
  height: 6px;
  margin-top: 19px;
  background: var(--lemon);
}

.hero h1 {
  margin: 30px 0 16px;
  color: var(--navy);
  font-size: clamp(140px, 12.5vw, 180px);
  font-weight: 250;
  letter-spacing: -0.072em;
  line-height: 0.91;
}

.hero h1 em {
  color: inherit;
  font-style: normal;
  font-weight: inherit;
}

.hero-lead {
  max-width: 480px;
  margin: 0;
  font-size: 25px;
  letter-spacing: -0.025em;
  line-height: 1.32;
}

.hero-actions {
  display: flex;
  gap: 23px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 61px;
  padding: 0 28px;
  border: 1px solid var(--navy);
  cursor: pointer;
  font: inherit;
  font-size: 16px;
  font-weight: 450;
  gap: 42px;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.button-dark {
  min-width: 228px;
  background: var(--navy);
  color: var(--paper);
}

.button-outline {
  min-width: 229px;
  background: transparent;
  color: var(--navy);
}

.button-dark:hover,
.button-dark:focus-visible {
  background: var(--lemon);
  color: var(--navy);
  transform: translateY(-2px);
}

.button-outline:hover,
.button-outline:focus-visible {
  background: color-mix(in srgb, var(--mineral) 12%, transparent);
  transform: translateY(-2px);
}

.hero-visual {
  position: absolute;
  z-index: 1;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(840px, 65vw);
  overflow: hidden;
  pointer-events: none;
}

.mineral-noon-art {
  position: absolute;
  inset: 0;
}

.mineral-noon-art::before {
  position: absolute;
  inset: 0;
  background-color: rgba(16, 30, 43, 0.12);
  background-image: url("assets/chilldigi-azure-water.webp");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  background-blend-mode: multiply;
  content: "";
  filter: none;
  mask-image: url("assets/hero-d-water-circle-mask.svg");
  mask-mode: alpha;
  mask-position: right top;
  mask-repeat: no-repeat;
  mask-size: 840px 788px;
  -webkit-mask-image: url("assets/hero-d-water-circle-mask.svg");
  -webkit-mask-position: right top;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: 840px 788px;
}

.mineral-noon-art::after {
  content: none;
}

.hero-visual::after {
  content: none;
}

.section {
  padding: clamp(88px, 10vw, 156px) clamp(28px, 4.3vw, 68px);
}

.statement {
  background: var(--paper);
}

.statement-top {
  display: grid;
  grid-template-columns: 0.7fr 2.3fr;
  gap: 44px;
  align-items: start;
}

.statement h2,
.section-heading h2,
.process-title h2,
.contact h2 {
  margin: 0;
  font-size: clamp(54px, 7.2vw, 112px);
  font-weight: 370;
  letter-spacing: -0.07em;
  line-height: 0.93;
}

.statement-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.65fr);
  gap: clamp(56px, 8vw, 132px);
  align-items: end;
}

.statement-intro h2 {
  max-width: 860px;
  font-size: clamp(62px, 7vw, 108px);
}

.statement-intro p {
  margin: 0 0 4px;
  font-size: 17px;
  line-height: 1.55;
}

.stack-map {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  margin-top: 88px;
  border-top: 1px solid var(--navy);
  border-bottom: 1px solid var(--navy);
  background: rgba(247, 242, 232, 0.72);
}

.stack-node {
  position: relative;
  display: flex;
  min-height: 178px;
  padding: 23px 24px 25px;
  flex-direction: column;
  border-right: 1px solid var(--navy);
}

.stack-node:last-child {
  border-right: 0;
}

.stack-node > span,
.stack-node small {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
}

.stack-node > span {
  width: max-content;
  padding: 4px 7px;
  background: var(--lemon);
}

.stack-node strong {
  margin-top: auto;
  font-size: clamp(21px, 1.7vw, 27px);
  font-weight: 520;
  letter-spacing: -0.035em;
}

.stack-node small {
  margin-top: 9px;
  color: rgba(16, 30, 43, 0.66);
}

.services {
  background: var(--navy);
  color: var(--paper);
}

.section-heading {
  display: grid;
  grid-template-columns: 0.7fr 1.45fr 0.85fr;
  gap: 44px;
  align-items: end;
  margin-bottom: 92px;
}

.section-heading h2 {
  font-size: clamp(60px, 6vw, 94px);
}

.section-heading > p:last-child {
  margin: 0;
  color: rgba(247, 242, 232, 0.72);
  font-size: 17px;
  line-height: 1.55;
}

.service-list {
  border-top: 1px solid var(--white-line);
}

.service-list-head {
  display: grid;
  grid-template-columns: 0.38fr 1fr 1.2fr;
  gap: 32px;
  padding: 15px 0;
  border-bottom: 1px solid var(--white-line);
  color: rgba(247, 242, 232, 0.5);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
}

.service-item {
  display: grid;
  grid-template-columns: 0.38fr 1fr 1.2fr;
  gap: 32px;
  align-items: start;
  padding: 38px 0;
  border-bottom: 1px solid var(--white-line);
}

.service-number {
  padding-top: 7px;
  color: var(--lemon);
  font-family: var(--font-mono);
  font-size: 12px;
}

.service-item h3 {
  margin: 0;
  font-size: clamp(30px, 3.25vw, 50px);
  font-weight: 430;
  letter-spacing: -0.05em;
  line-height: 1.05;
}

.service-detail p {
  max-width: 620px;
  margin: 0;
  color: rgba(247, 242, 232, 0.74);
  font-size: 16px;
  line-height: 1.55;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.tag-list span {
  padding: 7px 11px;
  border: 1px solid currentColor;
  font-family: var(--font-mono);
  font-size: 12px;
}

.process {
  background: var(--ice);
  color: var(--navy);
}

.process-title {
  display: grid;
  grid-template-columns: 0.7fr 2.3fr;
  gap: 44px;
  align-items: start;
}

.process-title h2 {
  max-width: 1050px;
}

.process-title > div > p {
  max-width: 610px;
  margin: 30px 0 0;
  font-size: 18px;
  line-height: 1.55;
}

.process-table {
  margin-top: 92px;
  border-top: 1px solid var(--navy);
}

.process-head,
.process-row {
  display: grid;
  grid-template-columns: 0.36fr 1fr 1.38fr 0.78fr;
  gap: 32px;
}

.process-head {
  padding: 15px 0;
  border-bottom: 1px solid var(--navy);
  color: rgba(16, 30, 43, 0.58);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
}

.process-row {
  align-items: start;
  padding: 32px 0 36px;
  border-bottom: 1px solid rgba(16, 30, 43, 0.3);
}

.process-number,
.process-name > span {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
}

.process-number {
  width: max-content;
  padding: 5px 8px;
  background: var(--lemon);
}

.process-name > span {
  color: rgba(16, 30, 43, 0.62);
}

.process-name h3 {
  margin: 12px 0 0;
  max-width: 360px;
  font-size: clamp(24px, 2.1vw, 33px);
  font-weight: 520;
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.process-row > p {
  margin: 0;
  color: rgba(16, 30, 43, 0.78);
  font-size: 15px;
  line-height: 1.6;
}

.process-outputs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.process-outputs span {
  padding: 7px 9px;
  border: 1px solid rgba(16, 30, 43, 0.5);
  font-family: var(--font-mono);
  font-size: 12px;
}

.contact {
  background: var(--lemon);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(340px, 0.7fr) minmax(560px, 1.3fr);
  gap: clamp(64px, 8vw, 126px);
  align-items: start;
  margin-top: 72px;
  padding-top: 42px;
  border-top: 1px solid var(--navy);
}

.contact-intro h2 {
  max-width: 620px;
  font-size: clamp(66px, 7.2vw, 112px);
}

.contact-intro p {
  max-width: 470px;
  margin: 38px 0 0;
  font-size: 17px;
  line-height: 1.55;
}

.contact-action > p:first-child {
  max-width: 570px;
  margin: 0;
  font-size: 20px;
  line-height: 1.5;
}

.contact-open {
  display: flex;
  width: 100%;
  min-height: 104px;
  margin-top: 36px;
  padding: 0 30px;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--navy);
  background: var(--navy);
  color: var(--paper);
  cursor: pointer;
  font: inherit;
  font-size: clamp(22px, 2.2vw, 32px);
  font-weight: 500;
  letter-spacing: -0.035em;
  transition: background 180ms ease, transform 180ms ease;
}

.contact-open:hover,
.contact-open:focus-visible {
  background: var(--paper);
  color: var(--navy);
  transform: translateY(-2px);
}

.contact-open .arrow {
  width: 30px;
  height: 30px;
}

.contact-alternative {
  margin: 26px 0 0;
  font-size: 15px;
}

.contact-alternative a {
  padding-bottom: 2px;
  border-bottom: 1px solid currentColor;
}

.contact-form {
  display: grid;
  gap: 26px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.contact-form label {
  display: grid;
  gap: 10px;
}

.contact-form label > span {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(16, 30, 43, 0.58);
  border-radius: 0;
  background: rgba(247, 242, 232, 0.28);
  color: var(--navy);
  font: inherit;
  font-size: 17px;
  outline: none;
  transition: background 160ms ease, border-color 160ms ease;
}

.contact-form input,
.contact-form select {
  min-height: 56px;
  padding: 0 15px;
}

.contact-form textarea {
  min-height: 156px;
  padding: 15px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--navy);
  background: rgba(247, 242, 232, 0.62);
}

.hp-field {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.form-status {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
}

.form-status:empty {
  display: none;
}

.form-status.is-ok {
  padding: 14px 16px;
  background: var(--ice);
}

.form-status.is-error {
  padding: 14px 16px;
  background: var(--lemon);
}

.form-submit {
  display: flex;
  justify-content: flex-end;
}

.form-submit button {
  min-width: 210px;
  min-height: 60px;
  border: 1px solid var(--navy);
  background: var(--navy);
  color: var(--paper);
  cursor: pointer;
  font: inherit;
  font-size: 16px;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.form-submit button:hover,
.form-submit button:focus-visible {
  background: var(--lemon);
  color: var(--navy);
  transform: translateY(-2px);
}

.project-dialog {
  width: min(920px, calc(100% - 40px));
  max-width: none;
  max-height: calc(100dvh - 40px);
  margin: auto;
  padding: 0;
  overflow: auto;
  border: 0;
  background: transparent;
  color: var(--navy);
}

.project-dialog::backdrop {
  background: rgba(7, 15, 22, 0.72);
  backdrop-filter: blur(8px);
}

.project-modal {
  position: relative;
  padding: 50px 54px 56px;
  border-top: 8px solid var(--lemon);
  background: var(--paper);
  box-shadow: 0 32px 90px rgba(4, 12, 19, 0.34);
}

.project-modal-head {
  max-width: 720px;
  padding-right: 60px;
}

.project-modal-head h2 {
  margin: 28px 0 0;
  font-size: clamp(54px, 6vw, 78px);
  font-weight: 370;
  letter-spacing: -0.065em;
  line-height: 0.96;
}

.project-modal-head > p:last-child {
  max-width: 620px;
  margin: 24px 0 0;
  font-size: 17px;
  line-height: 1.55;
}

.project-modal .contact-form {
  margin-top: 44px;
}

.project-modal .contact-form input,
.project-modal .contact-form select,
.project-modal .contact-form textarea {
  background: rgba(255, 255, 255, 0.42);
}

.modal-close {
  position: absolute;
  z-index: 2;
  top: 28px;
  right: 28px;
  display: grid;
  width: 48px;
  height: 48px;
  padding: 0 0 4px;
  border: 1px solid var(--navy);
  background: transparent;
  color: var(--navy);
  cursor: pointer;
  font: inherit;
  font-size: 32px;
  font-weight: 300;
  place-items: center;
}

.modal-close:hover,
.modal-close:focus-visible {
  background: var(--navy);
  color: var(--paper);
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 36px;
  align-items: end;
  padding: 54px clamp(28px, 4.3vw, 68px);
  background: var(--navy);
  color: var(--paper);
}

.footer-logo {
  display: block;
  width: 225px;
  height: 65px;
}

.footer-logo-image {
  display: block;
  width: 100%;
  height: 100%;
  background: url("assets/chilldigi-logo-footer.png") left center / contain no-repeat;
}

.footer-meta {
  display: flex;
  gap: 24px;
  color: rgba(247, 242, 232, 0.62);
  font-family: var(--font-mono);
  font-size: 12px;
}

.footer-meta a:hover {
  color: var(--paper);
}

.back-to-top {
  display: inline-flex;
  align-items: center;
  justify-self: end;
  font-size: 13px;
  gap: 14px;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--lemon);
  outline-offset: 4px;
}

/* 404-leht */
.nf-wrap { min-height: calc(100svh - 112px); padding: 120px clamp(28px, 4.3vw, 68px) 156px; }
.nf-wrap h1 { margin: 30px 0 24px; font-size: clamp(64px, 9vw, 132px); font-weight: 300; letter-spacing: -0.07em; line-height: 0.93; }
.nf-wrap p { max-width: 480px; font-size: 18px; line-height: 1.55; }
.nf-wrap .button { margin-top: 36px; text-decoration: none; }

/* Privaatsusleht */
.legal-wrap { max-width: 900px; margin: 0 auto; padding: 96px clamp(28px, 4.3vw, 68px) 156px; }
.legal-wrap h1 { margin: 30px 0 0; font-size: clamp(48px, 6vw, 88px); font-weight: 370; letter-spacing: -0.06em; line-height: 0.96; }
.legal-wrap h2 { margin: 64px 0 0; font-size: 27px; font-weight: 520; letter-spacing: -0.035em; }
.legal-wrap p, .legal-wrap li { font-size: 16px; line-height: 1.65; }
.legal-wrap p { margin: 18px 0 0; }
.legal-wrap ul { margin: 18px 0 0; padding-left: 22px; }
.legal-wrap li { margin-top: 8px; }
.legal-wrap a { border-bottom: 1px solid currentColor; }
.legal-updated { margin-top: 20px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; color: rgba(16, 30, 43, 0.6); }
.cookie-reset-btn { display: inline-flex; align-items: center; min-height: 52px; margin-top: 20px; padding: 0 24px; border: 1px solid var(--navy); background: transparent; color: var(--navy); cursor: pointer; font: inherit; font-size: 16px; transition: background 180ms ease, color 180ms ease; }
.cookie-reset-btn:hover, .cookie-reset-btn:focus-visible { background: var(--navy); color: var(--paper); }
.cookie-table { width: 100%; margin-top: 20px; border-collapse: collapse; }
.cookie-table th, .cookie-table td { padding: 12px 14px; border: 1px solid rgba(16, 30, 43, 0.35); font-size: 14px; line-height: 1.5; text-align: left; vertical-align: top; }
.cookie-table th { font-family: var(--font-mono); font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; background: rgba(247, 242, 232, 0.7); }
.cookie-table td:first-child { font-family: var(--font-mono); font-size: 13px; white-space: nowrap; }
.cookie-table small { font-family: var(--font-mono); font-size: 12px; color: rgba(16, 30, 43, 0.6); }

@media (max-width: 640px) {
  .cookie-table { display: block; overflow-x: auto; }
}

#cookie-banner {
  position: fixed;
  z-index: 90;
  right: 20px;
  bottom: 20px;
  width: min(440px, calc(100vw - 40px));
  padding: 24px 26px 26px;
  border-top: 6px solid var(--lemon);
  background: var(--navy);
  color: var(--paper);
  box-shadow: 0 24px 60px rgba(4, 12, 19, 0.35);
}

#cookie-banner p {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.55;
}

#cookie-banner a {
  border-bottom: 1px solid currentColor;
}

.cookie-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cookie-privacy-link {
  display: inline-block;
  margin-top: 14px;
  padding-bottom: 2px;
  border-bottom: 1px solid currentColor;
  font-size: 13px;
}

#cookie-settings {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: grid;
  place-items: center;
  padding: 20px;
  overflow: auto;
  background: rgba(7, 15, 22, 0.72);
  backdrop-filter: blur(8px);
}

.cs-card {
  position: relative;
  width: min(640px, 100%);
  max-height: min(88dvh, 920px);
  overflow: auto;
  padding: 44px 42px 40px;
  border-top: 8px solid var(--lemon);
  background: var(--paper);
  color: var(--navy);
  box-shadow: 0 32px 90px rgba(4, 12, 19, 0.34);
}

.cs-card h2 {
  margin: 0;
  padding-right: 56px;
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 400;
  letter-spacing: -0.05em;
  line-height: 1;
}

.cs-intro {
  margin: 14px 0 0;
  font-size: 15px;
  line-height: 1.55;
}

.cs-intro a {
  border-bottom: 1px solid currentColor;
}

.cs-cat {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.cs-cat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.cs-cat-head strong {
  font-size: 19px;
  font-weight: 520;
  letter-spacing: -0.02em;
}

.cs-switch {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
}

.cs-switch input {
  width: 18px;
  height: 18px;
  margin: 0;
  flex: 0 0 auto;
  accent-color: var(--navy);
}

.cs-switch input:disabled {
  cursor: default;
  opacity: 0.55;
}

.cs-cat > p {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.55;
  color: rgba(16, 30, 43, 0.75);
}

.cs-cat .cookie-table {
  margin-top: 14px;
}

.cs-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 32px;
}

.cs-actions button {
  min-height: 52px;
  padding: 0 22px;
  border: 1px solid var(--navy);
  cursor: pointer;
  font: inherit;
  font-size: 15px;
  transition: background 180ms ease, color 180ms ease;
}

.cs-actions button[data-cs="save"] {
  background: transparent;
  color: var(--navy);
}

.cs-actions button[data-cs="all"] {
  background: var(--navy);
  color: var(--paper);
}

.cs-actions button[data-cs="save"]:hover,
.cs-actions button[data-cs="save"]:focus-visible {
  background: var(--navy);
  color: var(--paper);
}

.cs-actions button[data-cs="all"]:hover,
.cs-actions button[data-cs="all"]:focus-visible {
  background: var(--lemon);
  color: var(--navy);
}

#cookie-float {
  position: fixed;
  z-index: 80;
  left: 16px;
  bottom: 16px;
  padding: 11px 16px;
  border: 1px solid var(--navy);
  border-top: 3px solid var(--lemon);
  background: var(--navy);
  color: var(--paper);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  box-shadow: 0 12px 30px rgba(4, 12, 19, 0.25);
  transition: background 180ms ease, color 180ms ease;
}

#cookie-float:hover,
#cookie-float:focus-visible {
  background: var(--lemon);
  color: var(--navy);
}

.cookie-actions button {
  flex: 0 1 auto;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid var(--paper);
  background: transparent;
  color: var(--paper);
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  transition: background 180ms ease, color 180ms ease;
}

.cookie-actions button[data-cc="all"] {
  border-color: var(--lemon);
  background: var(--lemon);
  color: var(--navy);
  font-weight: 500;
}

.cookie-actions button:hover,
.cookie-actions button:focus-visible {
  background: var(--paper);
  border-color: var(--paper);
  color: var(--navy);
}

@media (max-width: 640px) {
  #cookie-banner {
    right: 12px;
    bottom: 12px;
    width: calc(100vw - 24px);
  }

  .cs-card {
    padding: 34px 20px 28px;
  }

  .cs-actions {
    flex-direction: column;
  }

  .cs-actions button {
    width: 100%;
  }
}

@keyframes settle-letter {
  from {
    opacity: 0;
    transform: translateX(28px) scale(1.03);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@media (max-width: 1100px) {
  .site-header {
    grid-template-columns: 1fr auto auto;
    column-gap: 22px;
  }

  .desktop-nav,
  .header-cta {
    display: none;
  }

  .mobile-menu {
    position: relative;
    display: block;
    justify-self: end;
  }

  .mobile-menu summary {
    display: grid;
    width: 48px;
    height: 48px;
    cursor: pointer;
    list-style: none;
    place-content: center;
    gap: 7px;
  }

  .mobile-menu summary::-webkit-details-marker {
    display: none;
  }

  .mobile-menu summary span {
    display: block;
    width: 25px;
    height: 1px;
    background: currentColor;
    transition: transform 180ms ease;
  }

  .mobile-menu[open] summary span:first-child {
    transform: translateY(4px) rotate(45deg);
  }

  .mobile-menu[open] summary span:last-child {
    transform: translateY(-4px) rotate(-45deg);
  }

  .mobile-menu nav {
    position: absolute;
    top: 59px;
    right: -25px;
    display: grid;
    min-width: 260px;
    padding: 18px 28px 28px;
    border: 1px solid var(--line);
    background: var(--limestone);
    box-shadow: 0 24px 50px rgba(16, 30, 43, 0.15);
  }

  .mobile-menu nav a {
    padding: 15px 0;
    border-bottom: 1px solid var(--line);
    font-size: 17px;
  }

  .hero h1 {
    font-size: clamp(74px, 10.4vw, 108px);
    line-height: 0.98;
  }

  .statement-top,
  .process-title {
    grid-template-columns: 0.45fr 1.55fr;
  }

  .statement-intro {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .section-heading {
    grid-template-columns: 0.45fr 1.55fr;
  }

  .section-heading > p:last-child {
    grid-column: 2;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .contact-action {
    margin-top: 48px;
  }

  .site-footer {
    grid-template-columns: 1fr auto;
  }

  .footer-meta {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}

@media (max-width: 780px) {
  html {
    scroll-padding-top: 74px;
  }

  .site-header {
    min-height: 74px;
    padding: 0 20px;
  }

  .site-header .brand-link {
    margin-left: 0;
  }

  .brand-reference {
    width: 170px;
    height: 48px;
    background-position: -31px -18px;
    background-size: 1080px 675px;
  }

  .hero {
    display: block;
    height: auto;
    min-height: auto;
    overflow: hidden;
  }

  .hero-copy {
    position: relative;
    top: auto;
    left: auto;
    width: auto;
    padding: 64px 22px 52px;
  }

  .hero h1 {
    margin-top: 34px;
    font-size: clamp(68px, 21vw, 104px);
    letter-spacing: -0.085em;
  }

  .hero-lead {
    font-size: 19px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .button-outline {
    background: var(--limestone);
  }

  .hero-visual {
    position: relative;
    inset: auto;
    width: 100%;
    min-height: 96vw;
    margin-top: -52vw;
    background: transparent;
  }

  .mineral-noon-art::before {
    background-position: center;
    background-size: cover;
    mask-position: right top;
    mask-size: 100% auto;
    -webkit-mask-position: right top;
    -webkit-mask-size: 100% auto;
  }

  .section {
    padding: 84px 22px;
  }

  .statement h2,
  .section-heading h2,
  .process-title h2 {
    font-size: clamp(50px, 14vw, 74px);
  }

  .section-heading,
  .process-title,
  .statement-top,
  .statement-intro {
    display: block;
  }

  .section-heading h2,
  .process-title h2,
  .statement-intro h2 {
    margin-top: 42px;
  }

  .section-heading > p:last-child,
  .statement-intro p,
  .process-title > div > p {
    margin-top: 28px;
  }

  .stack-map {
    grid-template-columns: repeat(2, 1fr);
    margin-top: 58px;
  }

  .stack-node {
    min-height: 140px;
    border-bottom: 1px solid var(--navy);
  }

  .stack-node:nth-child(2n) {
    border-right: 0;
  }

  .stack-node:last-child {
    grid-column: 1 / -1;
    border-bottom: 0;
  }

  .service-list-head,
  .process-head {
    display: none;
  }

  .service-item {
    grid-template-columns: 42px 1fr;
    gap: 12px;
    padding: 28px 0;
  }

  .service-detail {
    grid-column: 2 / -1;
  }

  .process-table {
    margin-top: 62px;
  }

  .process-row {
    grid-template-columns: 42px 1fr;
    gap: 14px;
    padding: 28px 0 32px;
  }

  .process-name {
    grid-column: 2;
  }

  .process-row > p,
  .process-outputs {
    grid-column: 2;
  }

  .process-name h3 {
    font-size: 26px;
  }

  .contact-layout {
    display: block;
    margin-top: 48px;
    padding-top: 32px;
  }

  .contact-intro h2 {
    font-size: clamp(58px, 16vw, 84px);
  }

  .contact-form {
    margin-top: 42px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .form-submit button {
    width: 100%;
  }

  .project-dialog {
    width: calc(100% - 20px);
    max-height: calc(100dvh - 20px);
  }

  .project-modal {
    padding: 38px 22px 32px;
  }

  .project-modal-head {
    padding-right: 46px;
  }

  .project-modal-head h2 {
    margin-top: 28px;
    font-size: clamp(48px, 14vw, 66px);
  }

  .modal-close {
    top: 20px;
    right: 20px;
    width: 42px;
    height: 42px;
  }

  .footer-logo {
    width: 205px;
    height: 59px;
  }

  .site-footer {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    padding: 48px 22px;
  }

  .footer-meta {
    flex-wrap: wrap;
    order: 2;
  }

  .back-to-top {
    order: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
