/* KDTS Web. Blue on white, Bricolage Grotesque for display, Figtree for text. */

@font-face { font-family: 'Bricolage'; src: url('/assets/fonts/bricolage-grotesque-latin-800-normal.woff2') format('woff2'); font-weight: 800; font-display: swap; }
@font-face { font-family: 'Bricolage'; src: url('/assets/fonts/bricolage-grotesque-latin-700-normal.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Bricolage'; src: url('/assets/fonts/bricolage-grotesque-latin-600-normal.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Figtree'; src: url('/assets/fonts/figtree-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Figtree'; src: url('/assets/fonts/figtree-latin-400-italic.woff2') format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Figtree'; src: url('/assets/fonts/figtree-latin-600-normal.woff2') format('woff2'); font-weight: 600; font-display: swap; }

:root {
  --blue: #1f5eff;        /* signal blue: buttons, links, marks */
  --blue-deep: #1749d6;   /* the drawing sheet, hover */
  --blue-night: #0f2f94;  /* call-to-action band */
  --ink: #0e1a33;         /* headings */
  --slate: #46526b;       /* body text */
  --mist: #f2f6ff;        /* tinted bands */
  --line: #d6e2fa;        /* rules and borders */
  --paper: #ffffff;
  --display: 'Bricolage', 'Segoe UI', system-ui, sans-serif;
  --text: 'Figtree', 'Segoe UI', system-ui, sans-serif;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 10px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--paper); color: var(--slate);
  font: 400 1.0625rem/1.65 var(--text);
  text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
h1, h2, h3 { font-family: var(--display); color: var(--ink); margin: 0; letter-spacing: -0.02em; }
h1 { font-weight: 800; font-size: clamp(2.4rem, 5.2vw, 4.1rem); line-height: 1.02; letter-spacing: -0.035em; }
h2 { font-weight: 700; font-size: clamp(1.75rem, 3.2vw, 2.5rem); line-height: 1.1; }
h3 { font-weight: 700; font-size: 1.25rem; line-height: 1.25; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 14px; z-index: 10; border-radius: 6px; }
.skip:focus { left: 8px; }

/* wordmark */
.wordmark { font-family: var(--display); font-size: 1.5rem; line-height: 1; letter-spacing: -0.03em; display: inline-flex; align-items: baseline; gap: 0.18em; }
.wm-kdts { font-weight: 800; color: var(--ink); }
.wm-web { font-weight: 600; color: var(--paper); background: var(--blue); padding: 0.12em 0.32em 0.16em; border-radius: 6px; font-size: 0.82em; transform: translateY(-0.04em); }
.brand { text-decoration: none; display: inline-block; }

/* header */
.site-head { position: sticky; top: 0; z-index: 5; background: rgba(255,255,255,0.94); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.head-row { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 16px; }
.nav { list-style: none; margin: 0; padding: 0; display: flex; gap: clamp(14px, 3vw, 34px); }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.98rem; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--blue); }

/* buttons and links */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 24px;
  font: 600 1rem/1 var(--text); color: #fff; background: var(--blue); border: 2px solid var(--blue);
  border-radius: 999px; text-decoration: none; cursor: pointer; transition: background-color .15s, border-color .15s;
}
.btn:hover { background: var(--blue-deep); border-color: var(--blue-deep); }
.btn-quiet { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-quiet:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-light { background: #fff; color: var(--blue-night); border-color: #fff; }
.btn-light:hover { background: var(--mist); border-color: var(--mist); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.text-link { font-weight: 600; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.lead { font-size: clamp(1.12rem, 1.6vw, 1.3rem); line-height: 1.55; max-width: 36em; color: var(--slate); }

/* hero */
.hero { padding: clamp(40px, 7vw, 96px) 0 clamp(48px, 7vw, 88px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-copy h1 { max-width: 15ch; font-size: clamp(2.4rem, 4.6vw, 3.7rem); }
.hero-copy .lead { margin-top: 22px; }

/* the drawing sheet */
.sheet { background: var(--blue-deep); border-radius: 14px; color: #fff; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(23, 73, 214, 0.55); }
.bp-svg { display: block; width: 100%; height: auto; }
.bp-gridline { fill: none; stroke: rgba(255,255,255,0.09); stroke-width: 1; }
.bp-draw path { fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.bp-draw .bp-thin { stroke-width: 1.2; stroke: rgba(255,255,255,0.6); }
.bp-draw .bp-dot { stroke-width: 7; }
.bp-draw .bp-fill { fill: rgba(255,255,255,0.22); }
.bp-draw .bp-fill-strong { fill: #fff; }
.bp-dim { font: 600 12px var(--text); fill: rgba(255,255,255,0.75); }
.bp-mark circle { fill: #fff; }
.bp-mark text { font: 700 14px var(--display); fill: var(--blue-deep); }
.sheet-foot { display: grid; grid-template-columns: 1fr auto; gap: 18px 24px; padding: 18px 22px 22px; border-top: 1px solid rgba(255,255,255,0.22); }
.sheet-key { margin: 0; padding: 0; list-style: none; counter-reset: key; display: grid; gap: 7px; font-size: 0.95rem; line-height: 1.35; }
.sheet-key li { counter-increment: key; display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: start; }
.sheet-key li::before { content: counter(key); width: 22px; height: 22px; border-radius: 50%; background: #fff; color: var(--blue-deep); font: 700 0.8rem/22px var(--display); text-align: center; }
.sheet-title { margin: 0; border: 1px solid rgba(255,255,255,0.45); align-self: end; font-size: 0.82rem; min-width: 168px; }
.sheet-title div { display: grid; grid-template-columns: 82px 1fr; border-top: 1px solid rgba(255,255,255,0.3); }
.sheet-title div:first-child { border-top: 0; }
.sheet-title dt { padding: 5px 8px; color: rgba(255,255,255,0.72); border-right: 1px solid rgba(255,255,255,0.3); }
.sheet-title dd { margin: 0; padding: 5px 8px; font-weight: 600; }

@media (prefers-reduced-motion: no-preference) {
  .bp-draw path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.6s cubic-bezier(.6,.05,.25,1) .15s forwards; }
  .bp-draw .bp-fill, .bp-draw .bp-fill-strong { fill-opacity: 0; animation: draw 1.6s cubic-bezier(.6,.05,.25,1) .15s forwards, fillin .5s ease 1.4s forwards; }
  .bp-mark, .bp-dim { opacity: 0; animation: fillin .4s ease 1.6s forwards; }
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fillin { to { opacity: 1; fill-opacity: 1; } }

/* bands */
.band { padding: clamp(56px, 8vw, 104px) 0; }
.band + .band { border-top: 1px solid var(--line); }
.band-tint { background: var(--mist); border-top: 0 !important; }
.band-tint + .band { border-top: 0; }
.band > .wrap > h2 { margin-bottom: clamp(28px, 4vw, 44px); max-width: 20ch; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: clamp(28px, 4vw, 44px); }
.section-head p { margin: 0; }

/* screenshots */
.shot { margin: 0; position: relative; padding: 0 clamp(36px, 7%, 70px) clamp(30px, 6%, 56px) 0; }
.shot-desk { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: 0 24px 50px -28px rgba(14, 26, 51, 0.45); }
.shot-bar { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; background: var(--mist); border-bottom: 1px solid var(--line); }
.shot-bar span { width: 9px; height: 9px; border-radius: 50%; background: #c3d3f3; }
.shot-bar b { margin-left: 10px; font: 600 0.78rem/1 var(--text); color: var(--slate); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; }
.shot-phone { position: absolute; right: 0; bottom: 0; width: 25%; min-width: 92px; border: 6px solid var(--ink); border-radius: 22px; overflow: hidden; background: var(--ink); box-shadow: 0 20px 40px -18px rgba(14, 26, 51, 0.6); }
.shot-phone img { aspect-ratio: 390 / 600; object-fit: cover; object-position: top; border-radius: 15px; }

/* recent work */
.work-list { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 5vw, 64px); }
.work-copy { margin-top: 22px; max-width: 34em; }
.work-copy h3 { font-size: 1.5rem; }
.work-kind { color: var(--blue-deep); font-weight: 600; margin: 4px 0 12px; }

/* who */
.who { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); }
.who > div { border-left: 4px solid var(--blue); padding-left: 22px; }
.who h3 { font-size: 1.45rem; margin-bottom: 10px; }
.who p { max-width: 32em; margin: 0; }

/* included */
.included { margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px clamp(28px, 4vw, 52px); }
.included dt { font: 700 1.15rem/1.3 var(--display); color: var(--ink); margin-bottom: 8px; padding-top: 16px; border-top: 2px solid var(--ink); }
.included dd { margin: 0; }

/* yours to keep */
.yours { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.yours-copy h2 { margin-bottom: 20px; }
.yours-copy p { max-width: 32em; }
.bays { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.bay { display: grid; gap: 8px; padding: 12px; border: 2px dashed #b5c8ee; border-radius: 12px; background: rgba(255,255,255,0.55); }
.bay span { display: block; padding: 12px 10px; border-radius: 7px; background: #fff; border: 1px solid var(--line); font-size: 0.9rem; font-weight: 600; color: #8090ad; text-align: center; }
.bay b { font: 600 0.85rem/1.3 var(--text); color: #8090ad; text-align: center; padding-top: 4px; }
.bay-yours { border: 2px solid var(--blue); background: #fff; box-shadow: 0 18px 36px -24px rgba(31, 94, 255, 0.7); }
.bay-yours span { background: var(--blue); border-color: var(--blue); color: #fff; }
.bay-yours b { color: var(--ink); }

/* steps */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 3vw, 36px); }
.steps li { counter-increment: step; position: relative; padding-top: 64px; }
.steps li::before { content: counter(step); position: absolute; top: 0; left: 0; width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--blue); color: var(--blue); font: 800 1.15rem/40px var(--display); text-align: center; background: #fff; }
.steps li::after { content: ''; position: absolute; top: 22px; left: 56px; right: -12px; height: 2px; background: repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 14px); }
.steps li:last-child::after { display: none; }
.steps h3 { margin-bottom: 8px; }
.steps p { margin: 0; }

/* parent */
.parent > * { max-width: 760px; }
.parent h2 { margin-bottom: 16px; }
.parent p { font-size: 1.15rem; margin: 0; }

/* call to action */
.cta { background: var(--blue-night); color: #dbe6ff; padding: clamp(48px, 7vw, 80px) 0; }
.cta h2 { color: #fff; margin-bottom: 10px; }
.cta p { margin: 0; max-width: 34em; }
.cta-row { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.cta-actions { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.cta-mail { color: #fff; font-weight: 600; text-underline-offset: 4px; }

/* inner pages */
.page-head { padding: clamp(44px, 7vw, 88px) 0 clamp(28px, 4vw, 48px); background: var(--mist); }
.page-head h1 { max-width: 16ch; margin-bottom: 18px; }
.page-head-solo { min-height: 52vh; }
.case-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.case-copy h2 { margin-bottom: 4px; }
.case-copy h3 { margin: 26px 0 10px; font-size: 1.1rem; }
.ticks { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 8px; }
.ticks li { position: relative; padding-left: 28px; }
.ticks li::before { content: ''; position: absolute; left: 2px; top: 0.5em; width: 12px; height: 7px; border-left: 2.5px solid var(--blue); border-bottom: 2.5px solid var(--blue); transform: rotate(-45deg); }

/* contact */
.band-form { padding-top: clamp(36px, 5vw, 64px); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.form { display: grid; gap: 20px; max-width: 620px; }
.form-off { font-size: 1.15rem; }
.field { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field label, .field legend { font-weight: 600; color: var(--ink); padding: 0; }
.field legend { margin-bottom: 8px; }
.opt { font-weight: 400; color: var(--slate); }
input[type="text"], input[type="email"], textarea {
  width: 100%; font: inherit; color: var(--ink); background: #fff; border: 1.5px solid #b9c8e6; border-radius: 8px; padding: 12px 14px;
}
input[type="text"]:focus, input[type="email"]:focus, textarea:focus { border-color: var(--blue); outline: 3px solid rgba(31, 94, 255, 0.25); outline-offset: 0; }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: #c62828; }
textarea { resize: vertical; min-height: 130px; }
.choice { display: flex; align-items: center; gap: 10px; font-weight: 400 !important; color: var(--slate) !important; padding: 4px 0; cursor: pointer; }
.choice input { width: 20px; height: 20px; accent-color: var(--blue); margin: 0; }
.hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: 0.92rem; margin: 0; }
.form .btn { justify-self: start; min-width: 160px; }
.form .btn[disabled] { opacity: 0.6; cursor: wait; }
.field-error { color: #b71c1c; font-size: 0.92rem; margin: 0; font-weight: 600; }
.form-status { margin: 0; padding: 14px 16px; border-radius: 8px; font-weight: 600; }
.form-status.is-error { background: #fdecea; color: #8e1b1b; }
.form-status.is-ok { background: #e7f6ec; color: #1b5e32; }
.contact-aside { background: var(--mist); border-radius: 14px; padding: 26px 26px 10px; }
.contact-aside h2 { font-size: 1.2rem; margin-bottom: 10px; }
.big-mail { font: 700 1.25rem/1.3 var(--display); word-break: break-all; }

/* domains for sale */
.vh { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.dn-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.dn-head .lead { margin-bottom: 0; }
.who p + p { margin-top: 0.9em; }
.dn-card { margin: 0; background: var(--blue-deep); color: #fff; border-radius: 14px; padding: clamp(22px, 3vw, 32px); box-shadow: 0 30px 60px -30px rgba(23, 73, 214, 0.55); }
.dn-card-name { font: 800 clamp(2.4rem, 5vw, 3.6rem)/1 var(--display); letter-spacing: -0.035em; margin: 0 0 22px; }
.dn-card-name span { color: rgba(255,255,255,0.6); }
.dn-card dl { margin: 0; border: 1px solid rgba(255,255,255,0.45); font-size: 0.98rem; }
.dn-card dl div { display: grid; grid-template-columns: 96px 1fr; border-top: 1px solid rgba(255,255,255,0.3); }
.dn-card dl div:first-child { border-top: 0; }
.dn-card dt { padding: 8px 12px; color: rgba(255,255,255,0.72); border-right: 1px solid rgba(255,255,255,0.3); }
.dn-card dd { margin: 0; padding: 8px 12px; font-weight: 600; overflow-wrap: anywhere; }
.dn-card figcaption { margin-top: 16px; font-size: 0.95rem; color: #dbe6ff; }
.section-head h2 { margin: 0; }
.section-head > p { color: var(--slate); font-weight: 600; }
.dn-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 32px clamp(24px, 3vw, 40px); }
.dn { padding-top: 14px; border-top: 2px solid var(--ink); }
.dn p { margin: 0; }
.dn-name { font: 700 1.45rem/1.2 var(--display); color: var(--ink); letter-spacing: -0.02em; overflow-wrap: anywhere; }
.dn-tld { color: var(--blue); }
.dn-who { margin-top: 6px !important; }
.dn-mail { font-size: 0.95rem; color: var(--blue-deep); font-weight: 600; overflow-wrap: anywhere; }
.dn-link { margin-top: 10px !important; }
.dn-group { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 16px clamp(24px, 4vw, 56px); padding: 28px 0; }
.dn-group + .dn-group { border-top: 1px solid var(--line); }
.section-head + .dn-group { padding-top: 0; }
.dn-group:last-child { padding-bottom: 0; }
.dn-group > h3 { font-size: 1.45rem; padding-top: 12px; }
@media (max-width: 980px) {
  .dn-head { grid-template-columns: 1fr; }
  .dn-card { max-width: 520px; }
  .dn-group { grid-template-columns: 1fr; }
  .dn-group > h3 { padding-top: 0; }
  .dn-list { row-gap: 24px; }
}

/* footer */
.site-foot { background: var(--ink); color: #b9c4dc; padding: 56px 0 28px; font-size: 0.97rem; }
.site-foot a { color: #fff; text-decoration: none; }
.site-foot a:hover { text-decoration: underline; text-underline-offset: 3px; }
.site-foot .wm-kdts { color: #fff; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 32px; }
.foot-brand p { margin: 14px 0 0; max-width: 26em; }
.site-foot h2 { font: 600 0.98rem/1.3 var(--text); color: #fff; letter-spacing: 0; margin-bottom: 12px; }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot-legal { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 44px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.14); font-size: 0.88rem; }
.foot-legal p { margin: 0; }

/* responsive */
@media (max-width: 980px) {
  .hero-grid, .case-grid, .yours, .contact-grid { grid-template-columns: 1fr; }
  .hero-copy h1 { max-width: 16ch; }
  .work-list { grid-template-columns: 1fr; }
  .included { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .steps li:nth-child(2)::after { display: none; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .head-row { min-height: 60px; }
  .wordmark { font-size: 1.3rem; }
  .nav { gap: 16px; }
  .nav a { font-size: 0.92rem; }
  .nav li:nth-child(2) { display: none; }
  .who, .included { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .steps li::after { display: none; }
  .sheet-foot { grid-template-columns: 1fr; }
  .sheet-title { justify-self: start; }
  .bays { gap: 8px; }
  .bay { padding: 8px; }
  .bay span { padding: 9px 4px; font-size: 0.78rem; }
  .bay b { font-size: 0.76rem; }
  .actions .btn { flex: 1 1 auto; }
}
