/* Ephessus v2. Page layouts: hero, home sections, product pages, process, security, contact. */

/* ---------- hero, option B (idea 09): solid dark ground, type, one button, the system below ---------- */
.hero { position: relative; background: radial-gradient(ellipse 46% 38% at 88% 6%, rgba(138, 166, 118, 0.075), transparent 72%), var(--g0); padding: calc(var(--hd-h) + 96px) 0 0; overflow: hidden; }
.hero-media { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-media video, .hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 12, 14, 0.55), rgba(11, 12, 14, 0.85) 70%, var(--g0)); }
.hero-media:empty { display: none; }
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 64px; align-items: start; }
.hero .kicker { margin-bottom: 28px; }
.hero h1 { max-width: 20ch; }
/* A11: the side column aligns to the top, its first line level with the first line of the h1; the void falls below the text */
.hero-side { display: grid; gap: 30px; padding-top: 58px; }
.hero-side .lede { max-width: 34rem; }
.hero-open { position: relative; z-index: 1; margin-top: 88px; }
.hero-open .legend { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; margin-bottom: 14px; }
.hero-open .legend .kicker { color: var(--t-dim); }
.hero-open .legend a { font-size: 13.5px; color: var(--t-mid); }
.hero-open .legend a:hover { color: var(--t-hi); }
.hero-fade { height: 120px; background: linear-gradient(180deg, var(--g0), var(--g1)); }

/* ---------- systems index (home) ---------- */
.sys-head { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; margin-bottom: 72px; }
.sys-head .lede { justify-self: end; }
.band { display: grid; grid-template-columns: 340px 1fr; gap: 56px; align-items: start; padding: 72px 0; border-top: 1px solid var(--line-d); }
.band:last-child { border-bottom: 1px solid var(--line-d); }
/* v6: the text column leads, the demonstration follows. The title grew, the body reads at 17px in the
   high grey, and the demonstration sits inside a window shell so it reads as a screen, not as copy. */
.band-txt { position: sticky; top: calc(var(--hd-h) + 32px); display: grid; gap: 24px; }
.band-txt .idx { font-family: var(--mono); font-size: 12px; letter-spacing: 0.2em; color: var(--moss-lit); }
.band-txt h3 { font-size: clamp(2.6rem, 4.2vw, 3.8rem); letter-spacing: -0.03em; line-height: 1.02; }
.band-txt p { font-size: 17px; line-height: 1.6; color: var(--t-mid); max-width: 30rem; }
.band-txt .link { font-size: 15px; }
.band .stage { width: 100%; }
.band-stages { display: grid; gap: 28px; }
/* the window shell: a thin bar with three dots and the name of the system, so the demonstration reads as software */
.shell { border: 1px solid var(--line-d); border-radius: 12px; background: var(--g2); overflow: hidden; box-shadow: 0 40px 120px rgba(0, 0, 0, 0.45); }
.shell-bar { display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; border-bottom: 1px solid var(--line-d); background: var(--g2); }
.shell-bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(236, 238, 241, 0.12); }
.shell-bar span { margin-left: 10px; font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--t-dim); }
.shell-bar .dot-end { margin-left: auto; width: 6px; height: 6px; border-radius: 50%; background: var(--moss-lit); animation: livep 1.6s ease-in-out infinite; }
.shell .stage { border: 0; border-radius: 0; box-shadow: none; }

/* ---------- the firm ---------- */
.firm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.firm-grid h2 { margin: 18px 0 26px; }
.firm-def { margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--line-l); font-size: 15px; line-height: 1.6; color: var(--k-mid); max-width: 40rem; }
.firm-def b { font-weight: 500; color: var(--k-hi); }
.graph { width: 100%; height: clamp(340px, 32vw, 440px); display: block; margin-top: 0; }
.light .graph { filter: none; }
.outcomes { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-top: 96px; border-top: 1px solid var(--line-l); }
.outcome { padding: 52px 40px 52px 0; border-bottom: 1px solid var(--line-l); }
.outcome:nth-child(2n) { padding-left: 40px; border-left: 1px solid var(--line-l); }
.outcome .num { color: var(--k-hi); }
.outcome .what { font-size: 19px; font-weight: 450; color: var(--k-hi); margin: 22px 0 10px; letter-spacing: -0.01em; }
.outcome p { font-size: 15px; line-height: 1.6; color: var(--k-mid); max-width: 34rem; }

/* ---------- principles (home summary and process page) ---------- */
.princ-head { display: flex; justify-content: space-between; align-items: end; gap: 40px; margin-bottom: 56px; }
.princ { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.princ-item { border-top: 1px solid var(--line-d); padding-top: 26px; }
.princ-item h3 { font-size: clamp(1.5rem, 2.2vw, 1.9rem); margin-bottom: 14px; }
.princ-item p { font-size: 15px; line-height: 1.6; color: var(--t-mid); max-width: 30rem; }
.princ-list { display: grid; }
.princ-row { display: grid; grid-template-columns: 80px 1fr 1fr; gap: 40px; align-items: baseline; padding: 40px 0; border-top: 1px solid var(--line-d); }
.princ-row:last-child { border-bottom: 1px solid var(--line-d); }
.princ-row .idx { font-family: var(--mono); font-size: 12px; letter-spacing: 0.2em; color: var(--t-dim); }
.princ-row h3 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
.princ-row p { font-size: 16px; line-height: 1.6; color: var(--t-mid); max-width: 34rem; }

/* ---------- site index (home end) ---------- */
.site-index { display: grid; }
.site-index a {
  display: grid; grid-template-columns: 80px 1fr auto; align-items: baseline; gap: 32px;
  padding: 30px 0; border-top: 1px solid var(--line-d);
  font-family: var(--serif); font-size: clamp(2rem, 4vw, 3.4rem); letter-spacing: -0.025em; line-height: 1;
  color: var(--t-hi); transition: color var(--t-fast) var(--ez);
}
.site-index a:last-child { border-bottom: 1px solid var(--line-d); }
.site-index a:hover { color: var(--moss-lit); }
.site-index .idx { font-family: var(--mono); font-size: 12px; letter-spacing: 0.2em; color: var(--t-dim); }
.site-index .what { font-family: var(--sans); font-size: 14px; letter-spacing: 0; color: var(--t-dim); }
.site-index a:hover .what { color: var(--t-mid); }

/* ---------- closing call ---------- */
.call { text-align: left; }
.call-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; }
.call h2 { max-width: 14ch; }
.call .lede { margin-bottom: 30px; }
/* v6: the end of the home is one sentence and one button, in place of the index */
.call-end { position: relative; overflow: hidden; padding: 160px 0 150px; }
.call-end::before { content: ''; position: absolute; inset: auto -20% -60% -20%; height: 80%; background: radial-gradient(ellipse 50% 60% at 50% 100%, rgba(138, 166, 118, 0.12), transparent 70%); pointer-events: none; }
.call-end .container { position: relative; }
.call-end h2 { font-size: clamp(3rem, 7vw, 6.4rem); letter-spacing: -0.035em; line-height: 1; max-width: 12ch; }
.call-end .kicker { margin-bottom: 26px; }
.call-end .side { display: grid; gap: 30px; justify-items: start; padding-bottom: 10px; }
.call-end .lede { max-width: 30rem; margin: 0; }

/* ---------- product page ---------- */
.p-hero { position: relative; background: var(--g0); padding: calc(var(--hd-h) + 80px) 0 0; }
.p-hero-head { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; margin-bottom: 56px; }
.p-hero-head h1 { max-width: 14ch; margin-top: 22px; }
.p-hero-head h1.mid { font-size: clamp(2.6rem, 5.4vw, 5rem); }
.p-hero-head .lede { max-width: 32rem; }
.p-hero-head .side { display: grid; gap: 28px; padding-bottom: 8px; }
.p-detail { display: grid; grid-template-columns: 300px 1fr; gap: 56px; padding: 72px 0; border-top: 1px solid var(--line-d); }
.p-detail:first-child { border-top: none; }
.p-detail h2 { font-size: clamp(1.6rem, 2.4vw, 2.1rem); }
.p-detail .body { max-width: 60ch; font-size: 17px; }
.p-detail ul { list-style: none; display: grid; }
.p-detail li { padding: 18px 0; border-top: 1px solid var(--line-d); font-size: 17px; line-height: 1.5; color: var(--t-mid); display: grid; grid-template-columns: 40px 1fr; gap: 16px; }
.p-detail li:last-child { border-bottom: 1px solid var(--line-d); }
.p-detail li .idx { font-family: var(--mono); font-size: 12px; letter-spacing: 0.16em; color: var(--t-dim); padding-top: 6px; }
.law { font-family: var(--serif); font-weight: 400; font-size: clamp(1.8rem, 3.2vw, 2.8rem); line-height: 1.15; letter-spacing: -0.02em; max-width: 20ch; }
.p-next { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding: 40px 0; border-top: 1px solid var(--line-d); }
.p-next a { display: inline-flex; align-items: baseline; gap: 12px; font-family: var(--serif); font-size: clamp(1.4rem, 2.4vw, 2rem); letter-spacing: -0.02em; transition: color var(--t-fast) var(--ez); }
.p-next a svg { width: 0.55em; height: 0.55em; }
.p-next a:hover { color: var(--moss-lit); }
.p-next .mono { font-size: 12px; color: var(--t-dim); text-transform: uppercase; letter-spacing: 0.2em; }

/* ---------- process ---------- */
.phases { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 72px; border-top: 1px solid var(--line-d); }
.phase { padding: 40px 32px 48px 0; border-right: 1px solid var(--line-d); display: grid; gap: 18px; align-content: start; }
.phase:nth-child(n+2) { padding-left: 32px; }
.phase:last-child { border-right: none; }
.phase .idx { font-family: var(--mono); font-size: 12px; letter-spacing: 0.2em; color: var(--t-dim); }
.phase h3 { font-size: clamp(1.6rem, 2.4vw, 2.1rem); }
.phase .num { font-size: clamp(3rem, 5vw, 4.6rem); font-weight: 500; margin: 10px 0 0; }
.phase .num small { display: block; font-family: var(--mono); font-size: 12px; line-height: 1.45; letter-spacing: 0.12em; text-transform: uppercase; color: var(--t-dim); margin-top: 10px; font-weight: 400; }
.phase p { font-size: 15px; line-height: 1.6; color: var(--t-mid); }
.phase .out { font-size: 14px; line-height: 1.55; color: var(--t-mid); padding-top: 14px; border-top: 1px solid var(--line-d); }
.phase .out b { display: block; font-family: var(--mono); font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--t-dim); font-weight: 500; margin-bottom: 8px; }

/* ---------- security ---------- */
.sec-rows { display: grid; margin-top: 64px; }
.sec-row { display: grid; grid-template-columns: 80px 1fr 1fr; gap: 40px; align-items: baseline; padding: 44px 0; border-top: 1px solid var(--line-d); }
.sec-row:last-child { border-bottom: 1px solid var(--line-d); }
.sec-row .idx { font-family: var(--mono); font-size: 12px; letter-spacing: 0.2em; color: var(--t-dim); }
.sec-row h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); max-width: 19ch; }
.sec-row p { font-size: 16.5px; line-height: 1.6; color: var(--t-mid); max-width: 36rem; }
.sec-mail { margin-top: 64px; display: flex; gap: 20px; align-items: baseline; flex-wrap: wrap; }
.sec-mail .mono { font-size: 12px; color: var(--t-dim); text-transform: uppercase; letter-spacing: 0.2em; }
.sec-mail a { font-family: var(--mono); font-size: 15px; letter-spacing: 0.02em; color: var(--t-hi); border-bottom: 1px solid var(--line-d2); }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 80px; align-items: start; }
.contact-left { position: sticky; top: calc(var(--hd-h) + 40px); display: grid; gap: 40px; }
.contact-left h1 { max-width: 11ch; }
.contact-mails { display: grid; gap: 12px; padding-top: 28px; border-top: 1px solid var(--line-d); }
.contact-mails a { display: flex; justify-content: space-between; gap: 20px; font-family: var(--mono); font-size: 13px; color: var(--t-mid); }
.contact-mails a span { font-family: var(--sans); font-size: 13px; color: var(--t-dim); }
.contact-mails a:hover { color: var(--t-hi); }
.form { display: grid; gap: 14px; }
.field { display: grid; gap: 8px; padding: 18px 20px 16px; border: 1px solid var(--line-d2); border-radius: 8px; transition: border-color var(--t-fast) var(--ez), box-shadow var(--t-state) var(--ez); }
.field:focus-within { border-color: var(--t-mid); box-shadow: 0 0 0 3px rgba(236, 238, 241, 0.06); }
.field label { font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--t-dim); display: flex; justify-content: space-between; gap: 12px; }
.field .req { color: var(--t-dim); letter-spacing: 0.08em; text-transform: none; font-size: 12px; }
.field.err { border-color: var(--amber); }
.field.err label, .field.err .req { color: var(--amber); }
.field input, .field textarea { width: 100%; border: none; outline: none; background: none; font-family: var(--sans); font-size: 16px; color: var(--t-hi); resize: vertical; }
.field textarea { min-height: 110px; }
.field input::placeholder, .field textarea::placeholder { color: var(--t-dim); }
.form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-send { margin-top: 10px; justify-self: start; }
.form-state { font-size: 14.5px; line-height: 1.5; color: var(--t-mid); padding: 12px 0 0; }
.form[data-state="sent"] .form-state { color: var(--moss-lit); }
.form[data-state="error"] .form-state { color: var(--amber); }
.form-pt { font-size: 14px; color: var(--t-dim); padding-top: 14px; border-top: 1px solid var(--line-d); margin-top: 22px; }
.next-steps { display: grid; padding-top: 28px; border-top: 1px solid var(--line-d); }
.next-steps h2 { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--t-dim); margin-bottom: 8px; }
.next-steps ol { list-style: none; }
.next-steps li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line-d); font-size: 15px; line-height: 1.55; color: var(--t-mid); }
.next-steps li:first-child { border-top: none; }
.next-steps .idx { font-family: var(--mono); font-size: 12px; letter-spacing: 0.16em; color: var(--t-dim); padding-top: 4px; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero h1 { max-width: 14ch; }
  .hero-side { padding-top: 0; }
  .sys-head { grid-template-columns: 1fr; gap: 24px; }
  .sys-head .lede { justify-self: start; }
  .band { grid-template-columns: 1fr; gap: 32px; padding: 56px 0; }
  .band-txt { position: static; gap: 14px; }
  .call-end { padding: 110px 0 100px; }
  .firm-grid { grid-template-columns: 1fr; gap: 40px; }
  .outcomes { grid-template-columns: 1fr; margin-top: 64px; }
  .outcome, .outcome:nth-child(2n) { padding: 40px 0; border-left: none; }
  .princ { grid-template-columns: 1fr; gap: 28px; }
  .princ-head { flex-direction: column; align-items: flex-start; gap: 20px; }
  .princ-row, .sec-row { grid-template-columns: 60px 1fr; gap: 16px 24px; }
  .princ-row p, .sec-row p { grid-column: 2; }
  .p-hero-head { grid-template-columns: 1fr; gap: 28px; margin-bottom: 36px; }
  .p-detail { grid-template-columns: 1fr; gap: 24px; padding: 56px 0; }
  .phases { grid-template-columns: 1fr 1fr; }
  .phase { border-right: none; border-bottom: 1px solid var(--line-d); padding: 32px 24px 40px 0; }
  .phase:nth-child(n+2) { padding-left: 0; }
  .phase:nth-child(2n) { padding-left: 24px; border-left: 1px solid var(--line-d); }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .contact-left { position: static; }
  .call-grid { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 600px) {
  .hero { padding-top: calc(var(--hd-h) + 56px); }
  .hero .kicker { margin-bottom: 20px; }
  .hero-open { margin-top: 56px; }
  .hero-open .legend { flex-direction: column; gap: 6px; }
  .band-txt h3 { font-size: 2rem; }
  .site-index a { grid-template-columns: 44px 1fr; gap: 16px; font-size: 1.9rem; padding: 22px 0; }
  .site-index .what { display: none; }
  .phases { grid-template-columns: 1fr; }
  .phase, .phase:nth-child(2n) { padding: 28px 0 36px; border-left: none; }
  .form .two { grid-template-columns: 1fr; }
  .p-next { flex-direction: column; align-items: flex-start; }
  .princ-row h3, .sec-row h3 { max-width: none; }
  .outcome .num { font-size: 4.2rem; }
}
