/* Sortaix — minimal */

:root {
  --paper: #f7f6f2;
  --paper-2: #efede6;
  --ink: #141414;
  --ink-2: #3b3a37;
  --soft: #8c8a83;
  --line: #e2dfd6;
  --accent: #e2552b;

  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --wrap: 1200px;
  --pad: clamp(16px, 4vw, 48px);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* , *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv11";
}
::selection { background: var(--ink); color: var(--paper); }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, blockquote, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 2px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.soft { color: var(--soft); }

/* ---------- type ---------- */
.eyebrow, .kicker {
  font-size: 14px;
  color: var(--soft);
  letter-spacing: -0.005em;
}
.kicker { display: flex; align-items: center; gap: 10px; }
.kicker::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

.title {
  font-size: clamp(34px, 4.6vw, 60px);
  line-height: 1.06;
  letter-spacing: -0.035em;
  font-weight: 500;
  max-width: 18ch;
}
.title .soft { font-weight: 400; }
.statement {
  font-size: clamp(26px, 3.2vw, 42px);
  line-height: 1.18;
  letter-spacing: -0.03em;
  font-weight: 500;
}
.statement .soft { font-weight: 400; }
.lead { font-size: 19px; color: var(--ink-2); max-width: 420px; }
.num { font-size: 13px; color: var(--soft); font-variant-numeric: tabular-nums; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 15px;
  font-weight: 500;
  transition: background 0.2s, transform 0.2s var(--ease);
}
.btn:hover { background: #2c2c2a; }
.btn:active { transform: scale(0.98); }
.textlink {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 500;
}
.textlink span { transition: transform 0.25s var(--ease); }
.textlink:hover span { transform: translateX(4px); }

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247, 246, 242, 0.85);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav__inner { height: 68px; display: flex; align-items: center; gap: 40px; }
.logo { display: inline-flex; align-items: center; gap: 9px; font-weight: 500; font-size: 18px; letter-spacing: -0.03em; }
.logo__mark { width: 30px; height: 30px; display: block; }
.nav__links { display: flex; gap: 30px; margin-left: auto; }
.nav__links a, .nav__cta { font-size: 14.5px; color: var(--ink-2); transition: color 0.2s; }
.nav__links a:hover { color: var(--ink); }
.nav__cta {
  color: var(--ink);
  font-weight: 500;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: border-color 0.2s, background 0.2s;
}
.nav__cta:hover { border-color: var(--ink); }
.nav__toggle { display: none; width: 36px; height: 36px; margin-left: auto; position: relative; }
.nav__toggle span { position: absolute; left: 8px; right: 8px; height: 1.5px; background: var(--ink); transition: transform 0.3s var(--ease), top 0.3s var(--ease); }
.nav__toggle span:first-child { top: 14px; }
.nav__toggle span:last-child { top: 21px; }
.nav__toggle[aria-expanded="true"] span:first-child { top: 17.5px; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { top: 17.5px; transform: rotate(-45deg); }
.menu { padding: 8px var(--pad) 28px; border-bottom: 1px solid var(--line); }
.menu[hidden] { display: none; }
.menu a { display: block; padding: 14px 0; font-size: 22px; letter-spacing: -0.02em; border-bottom: 1px solid var(--line); }

/* ---------- hero ---------- */
.hero { padding: clamp(72px, 11vw, 150px) 0 0; }
.hero__title {
  margin-top: 24px;
  font-size: clamp(38px, 5.8vw, 76px);
  line-height: 1.04;
  letter-spacing: -0.042em;
  font-weight: 500;
  max-width: 21ch;
}
.hero__title .soft { font-weight: 400; }
.hero__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 28px; margin-top: 44px; }

.hero__visual {
  position: relative;
  max-width: calc(var(--wrap) + 160px);
  margin: clamp(64px, 9vw, 120px) auto 0;
  padding: 0 var(--pad);
}
.hero__visual canvas {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 7;
  background: var(--paper-2);
  border-radius: 6px;
}
.hero__caption {
  display: flex;
  justify-content: space-between;
  padding-top: 14px;
  font-size: 13px;
  color: var(--soft);
}

/* ---------- sections ---------- */
.section { padding: clamp(96px, 13vw, 176px) 0; }
.section--tint { background: var(--paper-2); }
.section--line { border-top: 1px solid var(--line); }
.section--ink { background: var(--ink); color: var(--paper); }
.section--ink .soft, .section--ink .num, .section--ink .kicker { color: #8f8d86; }
.section--ink p { color: #b9b7b0; }

.split { display: grid; grid-template-columns: 1fr 3fr; gap: 48px; }
.head { margin-bottom: clamp(56px, 7vw, 96px); }
.head .kicker { margin-bottom: 28px; }
.head--row { display: flex; justify-content: space-between; align-items: flex-end; gap: 48px; flex-wrap: wrap; }

/* problem trio */
.trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  margin-top: clamp(72px, 9vw, 120px);
  padding-top: 40px;
  border-top: 1px solid var(--line);
}
.trio h3 { margin: 20px 0 12px; font-size: 21px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.25; }
.trio p { color: var(--ink-2); font-size: 16px; }

/* beliefs */
.beliefs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 64px;
}
.beliefs h4 { font-size: 16px; font-weight: 500; margin-bottom: 8px; letter-spacing: -0.01em; }
.beliefs p { color: var(--ink-2); font-size: 15.5px; }

/* services grid */
.grid3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}
.svc {
  padding: 36px 36px 56px 0;
  border-bottom: 1px solid var(--line);
}
.svc:not(:nth-child(3n + 1)) { padding-left: 36px; border-left: 1px solid var(--line); }
.svc h3 { margin: 40px 0 12px; font-size: 22px; font-weight: 500; letter-spacing: -0.025em; }
.svc p { color: var(--ink-2); font-size: 16px; max-width: 32ch; }

/* method */
.method { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid #2e2e2c; }
.method li { padding: 32px 32px 0 0; }
.method li + li { padding-left: 32px; border-left: 1px solid #2e2e2c; }
.method__top { display: flex; justify-content: space-between; font-size: 13px; }
.method__time { color: #8f8d86; }
.method h3 { margin: 72px 0 14px; font-size: 30px; font-weight: 500; letter-spacing: -0.035em; }
.method p { font-size: 15.5px; }

/* industries */
.rows { border-top: 1px solid var(--line); }
.rows li {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 32px;
  align-items: baseline;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  transition: padding 0.4s var(--ease);
}
.rows__name { font-size: clamp(22px, 2.4vw, 30px); font-weight: 500; letter-spacing: -0.03em; }
.rows__desc { color: var(--ink-2); font-size: 16px; }
.rows li:hover { padding-left: 12px; }

/* quote */
.quote blockquote { max-width: 980px; }
.quote p {
  font-size: clamp(28px, 3.6vw, 48px);
  line-height: 1.16;
  letter-spacing: -0.035em;
  font-weight: 400;
}
.quote p::before { content: "“"; }
.quote p::after { content: "”"; }
.quote footer { margin-top: 32px; font-size: 15px; color: var(--soft); }

/* plans */
.grid3--plans { border-top: 0; gap: 0; }
.plan {
  padding: 40px 36px 0 0;
  border-top: 1px solid var(--ink);
  display: flex;
  flex-direction: column;
}
.plan + .plan { padding-left: 36px; }
.plan__meta { font-size: 13.5px; color: var(--soft); }
.plan h3 { margin: 56px 0 14px; font-size: 34px; font-weight: 500; letter-spacing: -0.04em; }
.plan p:not(.plan__meta) { color: var(--ink-2); font-size: 16px; margin-bottom: 32px; flex: 1; }

/* faq */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 26px 40px 26px 0;
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.02em;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute; right: 4px; top: 50%;
  width: 9px; height: 9px;
  border-right: 1.5px solid var(--soft);
  border-bottom: 1.5px solid var(--soft);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.3s var(--ease);
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { padding: 0 40px 28px 0; color: var(--ink-2); max-width: 64ch; }

/* contact */
.contact { border-top: 1px solid var(--line); }
.contact__title {
  font-size: clamp(44px, 7.4vw, 104px);
  line-height: 1;
  letter-spacing: -0.05em;
  font-weight: 500;
}
.contact__title .soft { font-weight: 400; }
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(48px, 8vw, 120px);
  margin-top: clamp(56px, 7vw, 96px);
}
.contact__info p { color: var(--ink-2); max-width: 36ch; }
.contact__mail {
  display: inline-block;
  margin-top: 28px;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
}
.contact__mail:hover { color: var(--accent); border-color: var(--accent); }

.form { display: flex; flex-direction: column; gap: 28px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field span { font-size: 13.5px; color: var(--soft); }
.field input, .field textarea {
  font: inherit;
  font-size: 17px;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid #cfccc2;
  border-radius: 0;
  padding: 8px 0 10px;
  resize: vertical;
  transition: border-color 0.2s;
}
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--ink); }
.field.is-invalid input, .field.is-invalid textarea { border-bottom-color: var(--accent); }
.form__foot { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 8px; }
.form__note { font-size: 14px; color: var(--soft); }
.form__note.err { color: var(--accent); }

/* footer */
.footer { border-top: 1px solid var(--line); padding: 72px 0 32px; }
.footer__inner { display: flex; justify-content: space-between; gap: 48px; flex-wrap: wrap; }
.footer__brand p { margin-top: 14px; color: var(--soft); font-size: 15px; }
.footer__cols { display: flex; gap: clamp(40px, 7vw, 96px); flex-wrap: wrap; }
.footer h4 { font-size: 13.5px; font-weight: 400; color: var(--soft); margin-bottom: 14px; }
.footer__cols a { display: block; font-size: 15px; padding: 4px 0; color: var(--ink-2); }
.footer__cols a:hover { color: var(--ink); }
.footer__base {
  display: flex;
  justify-content: space-between;
  margin-top: 72px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--soft);
}
.footer__base a:hover { color: var(--ink); }

/* motion */
.fade { opacity: 0; transform: translateY(14px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.fade.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: block; }
  .split { grid-template-columns: 1fr; gap: 24px; }
  .trio, .beliefs { grid-template-columns: 1fr; gap: 36px; }
  .grid3 { grid-template-columns: 1fr 1fr; }
  .svc, .svc:not(:nth-child(3n + 1)) { padding: 32px 28px 44px 0; border-left: 0; }
  .svc:nth-child(2n) { padding-left: 28px; border-left: 1px solid var(--line); }
  .method { grid-template-columns: 1fr 1fr; }
  .method li, .method li + li { padding: 32px 28px 40px 0; border-left: 0; }
  .method li:nth-child(2n) { padding-left: 28px; border-left: 1px solid #2e2e2c; }
  .method li:nth-child(n + 3) { border-top: 1px solid #2e2e2c; }
  .method h3 { margin-top: 40px; }
  .grid3--plans { grid-template-columns: 1fr; gap: 56px; }
  .plan, .plan + .plan { padding: 32px 0 0; }
  .plan h3 { margin-top: 32px; }
  .contact__grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .hero__visual canvas { aspect-ratio: 4 / 3; }
  .grid3 { grid-template-columns: 1fr; }
  .svc, .svc:nth-child(2n), .svc:not(:nth-child(3n + 1)) { padding: 28px 0 36px; border-left: 0; }
  .svc h3 { margin-top: 20px; }
  .method { grid-template-columns: 1fr; }
  .method li, .method li + li, .method li:nth-child(2n) { padding: 28px 0 36px; border-left: 0; }
  .method li + li { border-top: 1px solid #2e2e2c; }
  .method h3 { margin-top: 24px; }
  .rows li { grid-template-columns: 1fr; gap: 6px; padding: 22px 0; }
  .form__row { grid-template-columns: 1fr; }
  .faq summary { font-size: 17px; }
  .footer__base { flex-direction: column; gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fade { opacity: 1; transform: none; transition: none; }
  * { transition-duration: 0.01ms !important; }
}

/* service pillars */
.pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}
.pillar { padding: 36px 28px 8px 0; display: flex; flex-direction: column; }
.pillar + .pillar { padding-left: 28px; border-left: 1px solid var(--line); }
.pillar h3 { margin: 48px 0 12px; font-size: 26px; font-weight: 500; letter-spacing: -0.035em; }
.pillar > p { color: var(--ink-2); font-size: 15.5px; min-height: 5.2em; }
.pillar ul { margin-top: 28px; border-top: 1px solid var(--line); }
.pillar li { padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; color: var(--ink-2); }

@media (max-width: 1080px) {
  .pillars { grid-template-columns: 1fr 1fr; }
  .pillar, .pillar + .pillar { padding: 32px 28px 40px 0; border-left: 0; }
  .pillar:nth-child(2n) { padding-left: 28px; border-left: 1px solid var(--line); }
  .pillar:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .pillar h3 { margin-top: 28px; }
  .pillar > p { min-height: 0; }
}
@media (max-width: 600px) {
  .pillars { grid-template-columns: 1fr; }
  .pillar, .pillar + .pillar, .pillar:nth-child(2n) { padding: 28px 0 36px; border-left: 0; }
  .pillar + .pillar { border-top: 1px solid var(--line); }
}

.contact__mail { overflow-wrap: anywhere; }
