/* DIGITHRONEX · The Cut — the website's frame, for the OS pages a customer reaches from it.

   THE TOKENS AND TYPE ROLES ARE THE WEBSITE'S, copied from its tokens.css and base.css
   (Digithronex Redesign/web/public/assets/rev3/css). Keep them in step: a change there is a
   change here. Only what these pages use is carried over — no glass, no film, no rooms that
   never appear. Loaded by layouts/cut.blade.php; the page's own sheet comes after it. */

:root {
  --brand-azure: #0180FF;
  --brand-cobalt: #0158CF;
  --angle: 45deg;
  --angle-tan: 1;

  --d-ground: #0B0C0E; --d-surface: #121418; --d-raised: #1A1D22; --d-line: #2A2E35;
  --d-text: #F1F2F4; --d-text2: #A3A9B2; --d-text3: #7A808A; --d-signal: #3D96FF; --d-select: #0A2344;

  --s-ground: #F1F2F4; --s-surface: #FFFFFF; --s-raised: #E7E9EC; --s-line: #D5D8DD;
  --s-text: #0B0C0E; --s-text2: #474C54; --s-text3: #666C75; --s-signal: #0158CF; --s-select: #E3ECFB;

  --font-sans: "Mona Sans", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Martian Mono", ui-monospace, "SF Mono", Consolas, monospace;

  --f: 41.667ms;
  --ease-ramp: cubic-bezier(.72, 0, .18, 1);
  --ease-snap: cubic-bezier(.2, .8, .2, 1);
  --ease-focus: cubic-bezier(.3, .6, .1, 1);

  --margin: clamp(20px, 4.5vw, 80px);
  --maxw: 1680px;
  --gutter: 24px;
  --radius-control: 3px;
  --radius-chip: 2px;
  --cut-s: 10px;
  --cut-m: 16px;
  --cut-l: 24px;
}
@media (max-width: 1024px) { :root { --gutter: 16px; } }
@media (max-width: 640px) { :root { --gutter: 12px; } }

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--s-ground); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scrollbar-width: thin; }
body {
  margin: 0; font-family: var(--font-sans); font-size: 17px; line-height: 1.6; font-weight: 400; font-stretch: 100%;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
}
p, h1, h2, h3, h4, dl, dd, figure, blockquote, ul, ol, fieldset, legend { margin: 0; }
fieldset { border: 0; padding: 0; min-width: 0; }
legend { padding: 0; }
[hidden] { display: none !important; }
ul, ol { padding: 0; list-style: none; }
img, video, canvas, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
p { text-wrap: pretty; }

/* Rooms. The white studio for writing; the graphite screen for looking. */
.screen, .studio { background: var(--ground); color: var(--text); }
.screen {
  --ground: var(--d-ground); --surface: var(--d-surface); --raised: var(--d-raised); --line: var(--d-line);
  --text: var(--d-text); --text2: var(--d-text2); --text3: var(--d-text3); --signal: var(--d-signal); --select: var(--d-select);
  color-scheme: dark;
}
.studio {
  --ground: var(--s-ground); --surface: var(--s-surface); --raised: var(--s-raised); --line: var(--s-line);
  --text: var(--s-text); --text2: var(--s-text2); --text3: var(--s-text3); --signal: var(--s-signal); --select: var(--s-select);
  color-scheme: light;
}
::selection { background: var(--select, var(--s-select)); }
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--margin); }

/* Type roles. Width is the voice: statements condensed, headlines wide, labels widest. */
.statement { font-stretch: 75%; font-weight: 680; font-size: clamp(72px, 12vw, 232px); line-height: .88; letter-spacing: -.012em; }
.headline { font-stretch: 112.5%; font-weight: 560; font-size: clamp(32px, 4.2vw, 68px); line-height: 1.02; letter-spacing: -.01em; text-wrap: balance; }
.lead { font-size: clamp(19px, 1.45vw, 22px); line-height: 1.45; font-weight: 430; letter-spacing: -.005em; color: var(--text2); max-width: 34em; }
.label { font-stretch: 125%; font-weight: 620; font-size: 11.5px; line-height: 1.3; letter-spacing: .09em; text-transform: uppercase; }
.data { font-family: var(--font-mono); font-stretch: 87.5%; font-weight: 450; font-size: 12px; line-height: 1.5; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.caption { font-family: var(--font-mono); font-stretch: 87.5%; font-weight: 450; font-size: 12px; line-height: 1.5; letter-spacing: .02em; color: var(--text3); }

/* The primary action: a solid with the brand cut on its top-right corner, the cut drawn in signal. One per view. */
.primary {
  --c: 14px; --c-h: calc(var(--c) * var(--angle-tan));
  position: relative; isolation: isolate; appearance: none; border: 0; background: none; cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 28px 16px 20px; font-family: var(--font-sans); font-stretch: 112.5%; font-weight: 620; font-size: 13px;
  letter-spacing: .06em; text-transform: uppercase; line-height: 1; color: var(--ground);
}
.primary .fill { position: absolute; inset: 0; z-index: -1; background: var(--text); clip-path: polygon(0 0, calc(100% - var(--c)) 0, 100% var(--c-h), 100% 100%, 0 100%); transition: transform calc(4 * var(--f)) var(--ease-snap); }
.primary .edge { position: absolute; top: 0; right: 0; width: var(--c); height: var(--c-h); background: linear-gradient(to top right, transparent calc(50% - 1.1px), var(--signal) calc(50% - 1.1px), var(--signal) calc(50% + 1.1px), transparent calc(50% + 1.1px)); }
.primary:active .fill { transform: scale(.97); }
.primary:disabled { cursor: default; opacity: .55; }
.primary:focus-visible { outline: none; }
.primary:focus-visible::after {
  content: ""; position: absolute; inset: -5px; background: var(--signal);
  clip-path: polygon(evenodd, 0 0, calc(100% - var(--c) - 3px) 0, 100% calc(var(--c-h) + 3px), 100% 100%, 0 100%, 2px 2px, calc(100% - var(--c) - 4px) 2px, calc(100% - 2px) calc(var(--c-h) + 4px), calc(100% - 2px) calc(100% - 2px), 2px calc(100% - 2px));
}

/* Secondary actions are text links with an offset underline. No pills. */
.tlink { color: var(--text); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; text-decoration-color: var(--text3); transition: text-decoration-color calc(4 * var(--f)) var(--ease-snap); }
.tlink:hover { text-decoration-color: var(--signal); }

:focus-visible { outline: 2px solid var(--signal, var(--s-signal)); outline-offset: 3px; }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -100px; z-index: 100; padding: 12px 16px; background: var(--s-text); color: var(--s-ground); text-decoration: none; }
.skip-link:focus { top: 12px; }

/* ---------- The top bar: solid studio, as the site's bar is over a white act ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50; height: 56px;
  display: flex; align-items: center; gap: 20px; padding-inline: var(--margin);
  color: var(--s-text); background: var(--s-ground); box-shadow: inset 0 -1px 0 var(--s-line);
}
.topbar-logo { display: inline-flex; align-items: center; height: 26px; flex: none; color: inherit; }
.topbar-logo svg { height: 100%; width: auto; }
.topbar-here { opacity: .7; white-space: nowrap; }
.topbar-nav { margin-left: auto; display: flex; align-items: center; gap: 26px; }
.topbar-nav a {
  font-stretch: 125%; font-weight: 620; font-size: 11.5px; letter-spacing: .09em; text-transform: uppercase; text-decoration: none; color: inherit;
  padding: 8px 0; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size calc(4 * var(--f)) var(--ease-snap);
}
.topbar-nav a:hover { background-size: 100% 1px; }
.topbar-menu-btn { display: none; margin-left: auto; appearance: none; background: none; border: 0; color: inherit; cursor: pointer; padding: 10px 0; font-stretch: 125%; font-weight: 620; font-size: 11.5px; letter-spacing: .09em; text-transform: uppercase; }
@media (max-width: 900px) {
  .topbar { height: 52px; gap: 14px; }
  .topbar-nav { display: none; }
  .topbar-menu-btn { display: inline-flex; }
}

/* The menu: full screen, studio white, links at headline size */
.menu {
  position: fixed; inset: 0; z-index: 60; display: grid; grid-template-rows: auto 1fr; overflow-y: auto;
  padding: 0 var(--margin) calc(28px + env(safe-area-inset-bottom, 0px));
  color: var(--s-text); background: rgba(241, 242, 244, .97);
}
.menu-head { height: 52px; display: flex; align-items: center; }
.menu-close { margin-left: auto; appearance: none; background: none; border: 0; color: inherit; cursor: pointer; padding: 10px 0; font-stretch: 125%; font-weight: 620; font-size: 11.5px; letter-spacing: .09em; text-transform: uppercase; }
.menu-links { align-self: center; display: grid; gap: 4px; padding-block: 24px; }
.menu-links a { font-stretch: 112.5%; font-weight: 560; font-size: clamp(36px, 10vw, 56px); line-height: 1.08; letter-spacing: -.01em; text-decoration: none; color: inherit; }
body.menu-open { overflow: hidden; }

/* ---------- Footer ---------- */
.foot { background: var(--s-ground); color: var(--s-text2); border-top: 1px solid var(--s-line); }
.foot-wrap { max-width: var(--maxw); margin-inline: auto; padding: 28px var(--margin) calc(28px + env(safe-area-inset-bottom, 0px)); display: flex; flex-wrap: wrap; gap: 12px 32px; align-items: baseline; justify-content: space-between; }
.foot-links { display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: 15px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0ms !important; animation-duration: 0ms !important; scroll-behavior: auto !important; }
}
