/* Crown Slabs — CONTACT
   ══════════════════════════════════════════════════════════
   The channels, the form and their tablet/mobile layer.
   Loaded after styles.css and pages.css on contact.html only.

   The page shell — .pg__head / .pg__body / .pg__tail — is in
   pages.css, shared with every other interior page. Only the
   components that exist nowhere else are here, which is also
   why this is its own file rather than a third section of
   pages.css: the contact page and the gallery are worked on
   separately and neither should be able to overwrite the
   other's components.

   Nothing here restates a token, a type step or a button.
   ══════════════════════════════════════════════════════════ */

/* ══ THE SPREAD ════════════════════════════════════════════
   A spread: the channels stand in the left column as a short
   masthead of ways in, the form takes the wider right. Under
   1024 they stack, channels first — someone who already knows
   they want to DM should not have to scroll a form to find
   out that they can. Stacked they also stop being a list;
   see the responsive layer at the foot of the file.        */
.cf{display:grid;gap:clamp(44px,6vw,68px);align-items:start}
@media(min-width:1024px){
  .cf{grid-template-columns:minmax(0,1fr) minmax(0,1.5fr);gap:clamp(48px,6vw,96px)}
}

/* ── the channels ─────────────────────────────────────────
   Set like the bid card's spec rows: a mono micro label over
   the thing itself, hairline between. Instagram is listed
   first of the two live channels because the architecture
   names it the primary one — handle engraving is an
   Instagram-native product.                               */
.chn{margin:0;padding:0;list-style:none;display:flex;flex-direction:column}
.chn li{padding:22px 0;border-bottom:1px solid oklch(0.32 0.03 62 / .45)}
.chn li:first-child{padding-top:0}
.chn__k{
  display:block;margin-bottom:9px;
  font-family:var(--mono);font-size:.625rem;letter-spacing:.2em;
  text-transform:uppercase;color:var(--ink-3);
}
/* the value is the link, and it carries the footer's
   dispersion underline rather than a browser one */
.chn__v{
  position:relative;display:inline-block;
  font-family:var(--mono);font-size:1rem;letter-spacing:.03em;
  color:var(--champagne);text-decoration:none;padding-bottom:3px;
  transition:color var(--t-micro);
  /* a mono address does not break on its own, and these sit in
     narrow grid cells on a tablet — one long enough to outrun
     its column would take the document's width with it */
  overflow-wrap:anywhere;
}
.chn__v::after{
  content:"";position:absolute;left:0;bottom:0;height:1px;width:100%;
  background:linear-gradient(90deg,var(--fire-c),var(--fire-y));
  transform:scaleX(0);transform-origin:left;transition:transform 320ms var(--expo);
}
.chn__v:hover::after,.chn__v:focus-visible::after{transform:scaleX(1)}
.chn__n{margin-top:8px;color:var(--ink-3);font-size:.875rem;max-width:34ch}

/* the reply promise, set as a standing fact rather than a
   line of body copy — it is the one thing a visitor most
   wants confirmed before typing */
.chn__sla{
  margin-top:26px;display:flex;gap:11px;align-items:flex-start;
  font-family:var(--mono);font-size:.6875rem;letter-spacing:.14em;
  text-transform:uppercase;color:var(--ink-2);line-height:1.7;max-width:30ch;
}
.chn__sla .prism{margin-top:6px}

/* ── the form ─────────────────────────────────────────────
   Same field language as the engraving configurator on the
   homepage: no box, a hairline under the control, champagne
   on focus, the value itself in mono. A bordered input would
   be the only rectangle on a page made of hairlines.      */
.cf__form{display:flex;flex-direction:column;gap:clamp(26px,3.4vw,34px);max-width:620px}
/* An author `display` beats the UA sheet's [hidden] rule, so every
   element this page hides by property needs its own guard — without
   this one the form stayed on screen underneath its own receipt. */
.cf__form[hidden]{display:none}
.cf__two{display:grid;gap:clamp(26px,3.4vw,34px)}
@media(min-width:600px){.cf__two{grid-template-columns:1fr 1fr}}

.ff{position:relative;display:flex;flex-direction:column;gap:8px;min-width:0}
.ff__l{font-size:.6875rem;letter-spacing:.2em;text-transform:uppercase;color:var(--ink-3)}
.ff__l b{color:var(--champagne);font-weight:400;margin-left:2px}
.ff input,.ff textarea,.ff select{
  background:none;border:0;border-bottom:1px solid var(--hair);border-radius:0;
  font-family:var(--mono);font-size:1rem;letter-spacing:.03em;color:var(--ink);
  padding:11px 0;width:100%;transition:border-color var(--t-micro);
}
.ff textarea{resize:vertical;min-height:132px;line-height:1.65;padding-right:64px}
.ff input::placeholder,.ff textarea::placeholder{color:var(--ink-3);opacity:.5}
.ff input:focus,.ff textarea:focus,.ff select:focus{outline:none;border-bottom-color:var(--champagne)}

/* The native control cannot be styled to match, and replacing
   it with a listbox would cost the phone its own picker and
   the keyboard its type-ahead. So the element stays, stripped
   of its skin, and the wrapper draws the caret. */
.ff__sel select{appearance:none;-webkit-appearance:none;padding-right:30px;cursor:pointer}
/* The caret hangs off a wrapper around the control alone. Hung off
   .ff it is positioned against the whole field, so it slid down to
   sit level with the error line the moment one appeared. */
.ff__ctl{position:relative;display:block}
.ff__ctl::after{
  content:"";position:absolute;right:6px;top:50%;margin-top:-6px;width:7px;height:7px;
  border-right:1px solid var(--ink-3);border-bottom:1px solid var(--ink-3);
  transform:rotate(45deg);pointer-events:none;transition:border-color var(--t-micro);
}
.ff__ctl:focus-within::after{border-color:var(--champagne)}
/* Nothing chosen yet reads as placeholder, not as an answer. The
   empty option is the only value that fails `required`, so :invalid
   is exactly "still on Choose one" — and it stays true under the
   form's novalidate, which only suppresses the browser's own bubble. */
.ff select:required:invalid{color:var(--ink-3)}
/* the options themselves are drawn by the OS, which does not
   inherit the page — name the two colours it does honour */
.ff select option{background:var(--vault);color:var(--ink)}

.ff__count{
  position:absolute;right:0;bottom:11px;pointer-events:none;
  font-family:var(--mono);font-size:.6875rem;color:var(--ink-3);font-variant-numeric:tabular-nums;
}
.ff__count.is-warn b{color:var(--champagne)}
.ff__count.is-full b{color:var(--no)}

/* Errors are stated under the field they belong to and
   announced by aria-describedby, never by colour alone —
   the field keeps a red rule *and* a line of text.        */
.ff__e{
  font-family:var(--mono);font-size:.6875rem;letter-spacing:.1em;
  text-transform:uppercase;color:var(--no);
}
.ff__e:empty{display:none}
.ff.is-bad input,.ff.is-bad textarea,.ff.is-bad select{border-bottom-color:var(--no)}

/* The honeypot is taken out of sight the same way .sr is, rather
   than parked at left:-9999px — a bot fills either one, and the
   offset version reads as a 9999px outlier in any overflow audit
   of the page. */
.cf__pot{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}

.cf__act{display:flex;flex-wrap:wrap;align-items:center;gap:18px 24px}
.cf__form .btn[disabled]{opacity:.55;cursor:progress}
.cf__fine{color:var(--ink-3);font-size:.8125rem;max-width:34ch}

/* Send failed. The address is repeated in the failure so the
   message the visitor just typed has somewhere to go without
   a second trip to the top of the page. */
.cf__fail{
  border-left:2px solid var(--no);padding:12px 0 12px 16px;
  color:var(--ink-2);font-size:.875rem;
}
.cf__fail[hidden]{display:none}
.cf__fail a{color:var(--champagne)}

/* ── sent ─────────────────────────────────────────────────
   The form is replaced, not merely captioned: leaving a
   filled-in form on screen under a success line invites a
   second send of the same message.                        */
.cf__done{
  border:1px solid oklch(0.32 0.03 62 / .55);
  background:oklch(0.20 0.03 58 / .34);
  padding:clamp(28px,4vw,44px);max-width:620px;
  display:flex;flex-direction:column;align-items:flex-start;gap:16px;
}
.cf__done[hidden]{display:none}
.cf__done h2{font-size:clamp(1.5rem,2.6vw,2rem)}
.cf__done p{color:var(--ink-2);font-size:.9375rem}
.cf__done .rule{margin:2px 0 4px}
.cf__again{
  background:none;border:0;padding:0;cursor:pointer;
  font-family:var(--mono);font-size:.6875rem;letter-spacing:.18em;
  text-transform:uppercase;color:var(--ink-3);
  border-bottom:1px solid var(--hair);transition:color var(--t-micro),border-color var(--t-micro);
}
.cf__again:hover{color:var(--champagne);border-bottom-color:var(--champagne)}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE · TABLET AND MOBILE

   The desktop composition is a spread; below 1024 the two
   halves stack, and a stacked page is not the same page
   scaled down. Three things change:

   · the channels stop being a vertical list. Stacked, three
     of them are a 400px column the reader has to scroll past
     before the form even begins — as a row they read as the
     masthead of ways in that they are, and the form starts
     near the top of the screen.
   · the form takes the full measure rather than sitting at
     620px inside a 680px column, which left a stripe of dead
     gutter down one side.
   · on a phone the send button is the width of the field it
     submits, and the fine print goes under it.
   ══════════════════════════════════════════════════════════ */

/* ── the body band pays for the footer ────────────────────
   .pg__body carries padding only at the top in pages.css, on
   the assumption that a tail band follows it. This page ends
   on the form, so its last line would otherwise butt into
   the colophon's rule.

   Declared at one class, matching pages.css, so file order
   decides it and nothing here can outrank another page's own
   value — a `main>.pg__body:last-child` version of this rule
   sat at higher specificity and silently overrode the
   gallery's closing air from a file the gallery also loads. */
.pg__body{padding-bottom:clamp(64px,9vw,104px)}

/* ── tablet: the channels become a row ────────────────────
   Bounded above at 1023.98 because from 1024 they are the
   left half of the spread again and must go back to a list.
   In a row the hairline moves to the top of each entry: a
   bottom border under a grid cell draws a line under a
   column, not under the group. */
@media(min-width:600px) and (max-width:1023.98px){
  .chn{
    display:grid;grid-template-columns:1fr 1fr;
    gap:0 clamp(24px,4vw,44px);
  }
  .chn li{
    padding:20px 0 0;border-bottom:0;
    border-top:1px solid oklch(0.32 0.03 62 / .45);
  }
  .chn li:first-child{padding-top:20px}
  /* three entries in two columns leave the last one alone in
     the left cell, and its rule stops halfway across the row
     like a line that gave up. It takes the full width instead. */
  .chn li:nth-child(3){grid-column:1/-1}
  .chn__n{max-width:32ch}
  .chn__sla{margin-top:30px;max-width:none}
}
/* wide enough for three columns to hold a 20-character address
   without the mono type running into its neighbour */
@media(min-width:860px) and (max-width:1023.98px){
  .chn{grid-template-columns:repeat(3,1fr)}
  .chn li:nth-child(3){grid-column:auto}
}

/* ── tablet: the form fills its column ────────────────────
   620px is a measure for a form sitting beside something
   else. Alone in the page it is a form with a margin of
   nothing down one side. */
@media(max-width:1023.98px){
  .cf{gap:clamp(38px,6vw,54px)}
  .cf__form,.cf__done{max-width:none}
  /* the message is the field that grows into the extra width,
     so it does not need the height it had in a narrow column */
  .ff textarea{min-height:148px}
}

/* ── phone ────────────────────────────────────────────────
   Comfort, not compression: the controls get taller rather
   than tighter, because a 44px target is the point of the
   tier. */
@media(max-width:599px){
  .pg__head .lede{font-size:1rem}
  .pg__body{padding-block:clamp(38px,9vw,52px) 0}

  .chn li{padding:19px 0}
  .chn__n{max-width:none}
  .chn__sla{max-width:none;letter-spacing:.12em}

  /* one field per screen-width, and each control tall enough
     to hit without aiming */
  .ff input,.ff select{padding:14px 0}
  .ff textarea{min-height:124px;padding-top:12px;padding-bottom:12px}
  .ff__ctl::after{margin-top:-5px}

  /* the button is the width of the thing it sends, and the
     fine print sits under it rather than in a starved column
     beside it */
  .cf__act{flex-direction:column;align-items:stretch;gap:16px}
  .cf__form .btn{width:100%}
  .cf__fine{max-width:none}

  .cf__done{padding:26px 22px}
}

/* ── touch ────────────────────────────────────────────────
   The channel links are the one place on this page where a
   line of text is the tap target, so they are given the
   height to be one. */
@media(hover:none){
  /* the line of text measures 29px on its own, short of the 44px
     minimum. The underline moves down with the padding so the
     3px gap it keeps everywhere else is unchanged — grow the
     target, not the look. */
  .chn__v{padding-block:9px 12px}
  .chn__v::after{bottom:9px}
}

/* ══ REDUCED MOTION ════════════════════════════════════════ */
@media(prefers-reduced-motion:reduce){
  .chn__v::after,.cf__done,.ff input,.ff textarea,.ff select{transition:none}
}
