/* Self-hosted Anek faces (ISC-9: Hindi renders in Anek Devanagari, never a system fallback). OFL-1.1. *//* anek-latin-vietnamese-wdth-normal */
@font-face {
  font-family: 'Anek Latin Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 800;
  font-stretch: 75% 125%;
  src: url(/assets/anek-latin-vietnamese-wdth-normal.woff2) format('woff2-variations');
  unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB;
}

/* anek-latin-latin-ext-wdth-normal */
@font-face {
  font-family: 'Anek Latin Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 800;
  font-stretch: 75% 125%;
  src: url(/assets/anek-latin-latin-ext-wdth-normal.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

/* anek-latin-latin-wdth-normal */
@font-face {
  font-family: 'Anek Latin Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 800;
  font-stretch: 75% 125%;
  src: url(/assets/anek-latin-latin-wdth-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
/* Devanagari needs no width axis (Hindi headings use normal width), and the wght-only file is a third of the size. */
/* anek-devanagari-devanagari-wght-normal */
@font-face {
  font-family: 'Anek Devanagari Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 800;
  src: url(/assets/anek-devanagari-devanagari-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0900-097F,U+1CD0-1CF9,U+200C-200D,U+20A8,U+20B9,U+20F0,U+25CC,U+A830-A839,U+A8E0-A8FF,U+11B00-11B09;
}

/* anek-devanagari-latin-ext-wght-normal */
@font-face {
  font-family: 'Anek Devanagari Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 800;
  src: url(data:font/woff2;base64,d09GMgABAAAAAAugABQAAAAAFfgAAAszAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGoEGG4Q2HIFSP0hWQVKBAwZgP1NUQVSBJicqAHQvZBEICoZchScLJAAwixwBNgIkA0QEIAWHJAeBdQwHG8ETEVW0MUHx88A2th7Y4VwuRsqzLTC3NfkxdzhCklmIB5qzn7e72WyWEEJw+RxQo2ZBa4pWDOrGCaHy72jPTGoqUJdFGGMyxV9ZAByuDdXQFjFpkEQkT+5Nb0hu/LT2q86bRdQG8RCXnwiRTin4/sXVQjJpNFE5065ZrGnpFw9S13p1hA/GCQEeRJ/WDMys7QlhDSfGVH5iTxRBxQMAJAJNUFDQ0BDsuFERBDBQaODDgBwEcBIKKID83WtRwdLOKzqsyVnv3dh2S6vtrfY0PpxyMu50zOmsMzHnEi7G1MZeTrvmvud4YEdQVrISAC9eEMAki65oeQVd+xJZXjE9K4iGKIwdMnX8lmgAllUAQamsBsHjxoxzcYGLwNsDCufRceBGMAFBBwxENspGRDScmPzBRyzkWYZThJdmpBKKKvP1JlKGCQRXgSoL9S7ixgRcVaCyTO8hboJRpXx2hQdnCGgi7Qo9RwZjvziZZ3P6UkFugZx0mmjgv7TKP7ammEQCOikgDR2llEkp/BXgWd4BCAaCBpGSdcQjpOJkTqQqM7WnmAAEVIEgpCHwC/DJ5V8BngfGA+VAXyAPaAKko8r86tMdLZj0XB3AkFjEZQdlhwqXMrnkPHU3dEZuBqAVNoT5E9KxTVg+g0hKhQoHPagQoJq1cbImDfGuO9iRhw0bNxEDUAAVnb4UUIAraNs0QSEa1GeTjDAREMCGCggDETwIoKEgOMvisDzCWmFLizcRPLzprsqSYFhej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EmwxAlUgnP5jjeIpEZT1bpakEPYJhKRY421plrTtJDHT0KLgWuHxo0bcQ3VeNapOUxt7RwstHfXzu3rl/35I0g3f2nXnt37jl+88Qh9FriEr0lMSGiY2xv9+S2TklJsFyUObfgv8/qd586dtSVgtEGjZm2y83ILh7dskZWRnJiYcHNHOLgnwzHw0J4deO7eQ+DZOxFIxCSnTSwlKSoqHETyTrzmDUGAAMK6PrX6kkEBbe4Yin0nwLGHg3IBjjd4HEJ3q077VJ8C6CgACJxOehrbTgRoNgyCyRmovcgiaeZXHPkWtNvMjSyqPqW7splypQ+Dh5IDVTvlqskoJshHGTHD1HDAPm3tQDLRehDMblHSGRXRHMBrspkgQqZ8QhRc8hpR6S45RKON6MRGJJeJTgv+0nHRjOdNCDiZTASTkcSDwWASRDBdSTAmOSQEl7xGQnHSjIThJpWEYxBLIvDgJL1xQuM+OdL70gvpRfRiegm9lCq7t+5A3MCm1uKLAZ26logUvIGtk3AAkSTtPSNUDVOpzLD3UVN3XkECiXiBj11gc/TCUbcb8oAgDy+24xTd6pT0Mmr3tNxPHDDn8KYOoNrJq5QvqX2FGiItn5QnBCkv5jqk3+m9HsNxywSbkh4nwqT12RkvdvfluKRVqforXcWZ6/0CjYPIgJRBnyyNwUDSXf4cuAZw5F3kcnFxlRqe1JZRiKr73YtkHe7a3YV5/3nQHcfUY2GstT5i4BO4e71aqFLTDdOyHY/X5/rz7ycS09LRe3Q3zz1iM6dgVph22J21PPlAegAvLOYW+qbwlStVv7qpafaTp1wgqkK5RGXULeGXs3/4167TpCq1+2gn11ICTKxVyiVaQd0SfmX714GZTvY/a95v+TIA) format('woff2-variations');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

/* anek-devanagari-latin-wght-normal */
@font-face {
  font-family: 'Anek Devanagari Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 800;
  src: url(/assets/anek-devanagari-latin-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
/*
 * Design tokens (source: tokens.ts; tokens.test.ts keeps this file equal to it).
 * Zero specificity, so the server-injected school palette (\3c style id="s41-theme">, ADR 0201) always wins.
 * Put data-surface="apply" or "office" on <html> to pick the portal's scale.
 */
:where(:root) {
  --brand: #7d1d2c;
  --brand-ink: #ffffff;
  --brand-soft: #f8e8ea;
  --brand-soft-ink: #5c1320;
  --brand-line: #d9b3b9;
  --paper: #ffffff;
  --field: #f5f7fa;
  --ink: #1d2433;
  --ink-2: #4a5468;
  --rule-strong: #8a93a5;
  --ok: #1e6b46;
  --ok-soft: #e4f2ea;
  --focus: #1f5fd1;
  --s1: 4px;
  --s2: 8px;
  --s3: 12px;
  --s4: 16px;
  --s5: 24px;
  --s6: 32px;
  --s7: 48px;
  --r-paper: 2px;
  --r-field: 6px;
  --r-pill: 999px;
  --lh: 1.45;
  --font: "Anek Latin Variable", "Anek Devanagari Variable", system-ui, sans-serif;
  --font-hi: "Anek Devanagari Variable", "Anek Latin Variable", system-ui, sans-serif;
}

:where([data-surface="apply"]) {
  --desk: #e9ecf1;
  --rule: #c9cfd9;
  --ask: #8a4b00;
  --ask-soft: #fff1dc;
  --t-xs: 0.8125rem;
  --t-sm: 0.9375rem;
  --t-md: 1.0625rem;
  --t-lg: 1.375rem;
  --t-xl: 1.875rem;
  --t-xxl: 2.5rem;
  --r-btn: 10px;
  --lh-tight: 1.1;
  --wdth-display: 82;
  --tap: 48px;
}

:where([data-surface="office"]) {
  --desk: #eef1f5;
  --rule: #d3d8e0;
  --act: #1f4f99;
  --act-ink: #ffffff;
  --act-soft: #e7eefa;
  --act-soft-ink: #163a73;
  --ours: #8a4b00;
  --ours-soft: #fff1dc;
  --theirs: #4a5468;
  --theirs-soft: #eef1f5;
  --no: #a12a1c;
  --no-soft: #fbe9e6;
  --t-xs: 0.8125rem;
  --t-sm: 0.875rem;
  --t-md: 0.9375rem;
  --t-lg: 1.125rem;
  --t-xl: 1.5rem;
  --t-xxl: 2.25rem;
  --r-btn: 8px;
  --lh-tight: 1.15;
  --wdth-display: 80;
  --row: 44px;
}

body {
  margin: 0;
  background: var(--desk);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--t-md);
  line-height: var(--lh);
}

:lang(hi) {
  font-family: var(--font-hi);
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

/* kalam-devanagari-400-normal */
@font-face {
  font-family: 'Kalam';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/assets/kalam-devanagari-400-normal.woff2) format('woff2'), url(/assets/kalam-devanagari-400-normal.woff) format('woff');
  unicode-range: U+0900-097F,U+1CD0-1CF9,U+200C-200D,U+20A8,U+20B9,U+20F0,U+25CC,U+A830-A839,U+A8E0-A8FF,U+11B00-11B09;
}

/* kalam-latin-ext-400-normal */
@font-face {
  font-family: 'Kalam';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/assets/kalam-latin-ext-400-normal.woff2) format('woff2'), url(/assets/kalam-latin-ext-400-normal.woff) format('woff');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

/* kalam-latin-400-normal */
@font-face {
  font-family: 'Kalam';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/assets/kalam-latin-400-normal.woff2) format('woff2'), url(/assets/kalam-latin-400-normal.woff) format('woff');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
/* The Register (design: hogofogo-site mockups/v3/imp-2.html, picked for firstbench.app, ISC-76). Point of view:
   "kept". The page is the admissions register: pale blue ruling, the double red margin, royal-blue ink. */
:root {
  --royal: #1f3f99; /* fountain-pen ink, 8.6:1 on white */
  --royal-deep: #162e72;
  --margin: #d2384a; /* decorative rules only, never text */
  --rule-blue: #dbe5f4;
  --rule-sheet: #b9c8e3;
  --line-input: #7d8db0; /* 3.4:1 on white: non-text contrast for the write-on lines */
  --error: #a12a1c; /* 7:1 on white */
  --line: 32px; /* ruling pitch */
  --hand: "Kalam", "Segoe Print", cursive;
  --focus: var(--royal);
}

* {
  box-sizing: border-box;
}

body {
  background: var(--paper);
  overflow-x: clip;
  caret-color: var(--royal);
}

h1,
h2,
h3,
p,
ul {
  margin: 0;
}

::selection {
  background: #cfdcf5;
}

a {
  color: inherit;
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.wrap {
  width: min(1120px, 100% - 2rem);
  margin-inline: auto;
}

.ruled {
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0 calc(var(--line) - 1px),
    var(--rule-blue) calc(var(--line) - 1px) var(--line)
  );
}

.margin {
  position: relative;
}

.margin::before,
.margin::after {
  content: "";
  position: absolute;
  inset-block: 0;
  width: 1px;
  background: var(--margin);
  left: clamp(5px, 5vw, 72px);
}

.margin::after {
  left: calc(clamp(5px, 5vw, 72px) + 4px);
}

/* top bar */
.top {
  border-bottom: 1px solid var(--rule-sheet);
  background: var(--paper);
  position: relative;
  z-index: 1;
}

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
  min-height: 72px;
}

.mark {
  font-weight: 700;
  font-size: 1.3rem;
  font-variation-settings: "wdth" 80;
  text-decoration: none;
}

nav ul {
  display: flex;
  gap: clamp(1rem, 3vw, 2.25rem);
  list-style: none;
  padding: 0;
}

nav a {
  display: inline-block;
  padding-block: var(--s3);
  color: var(--ink-2);
  font-weight: 500;
  text-decoration: none;
}

nav a:hover {
  color: var(--royal);
  text-decoration: underline;
}

/* Devanagari's marks above and below the line need more room than the condensed Latin headings */
:lang(hi) :is(h1, h2) {
  line-height: 1.3;
}

/* hero */
.hero {
  text-align: center;
  padding-top: clamp(3.5rem, 9vw, 6.5rem);
}

h1 {
  font-size: clamp(2.6rem, 7vw, 5.4rem);
  font-weight: 650;
  line-height: 0.98;
  font-variation-settings: "wdth" 75;
  letter-spacing: -0.02em;
  max-width: 13ch;
  margin-inline: auto;
  text-wrap: balance;
}

h1 em,
.no,
.for,
.hand {
  font-family: var(--hand);
  font-weight: 400;
  font-style: normal;
  color: var(--royal);
}

h1 em {
  font-size: 0.86em;
  letter-spacing: 0;
}

.sub {
  color: var(--ink-2);
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  max-width: 46ch;
  margin: var(--s5) auto 0;
  text-wrap: balance;
}

.cta {
  margin-top: var(--s6);
}

.launch {
  margin-top: var(--s4);
  font: 400 1.15rem / 1.3 var(--hand);
  color: var(--royal);
}

.btn {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  padding: 0 1.7rem;
  border: 0;
  border-radius: 6px;
  background: var(--royal);
  color: #fff;
  font: 600 1.05rem / 1 var(--font);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease;
}

.btn:hover:not(:disabled) {
  background: var(--royal-deep);
}

.btn:disabled {
  background: var(--ink-2);
  opacity: 0.6;
  cursor: not-allowed;
}

/* product: the phone leads, the office screen sits behind it */
.stage {
  position: relative;
  width: min(1040px, 100%);
  margin: clamp(3rem, 7vw, 5rem) auto 0;
  padding-bottom: clamp(3rem, 6vw, 5rem);
}

.window {
  width: 86%;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--rule-sheet);
  border-radius: 12px;
  box-shadow: 0 24px 50px -28px rgb(20 30 70 / 0.35);
}

.window img {
  width: 100%;
  aspect-ratio: 1280 / 590;
  object-fit: cover;
  object-position: top;
}

.phone {
  position: absolute;
  right: 0;
  top: -12%;
  width: clamp(150px, 31%, 320px);
  padding: clamp(6px, 1vw, 11px);
  border-radius: clamp(26px, 4vw, 44px);
  background: #11162a;
  box-shadow: 0 40px 60px -26px rgb(20 30 70 / 0.5);
}

.phone img {
  width: 100%;
  aspect-ratio: 390 / 600;
  object-fit: cover;
  object-position: top;
  border-radius: clamp(20px, 3.2vw, 34px);
}

.tags {
  display: flex;
  justify-content: space-between;
  gap: var(--s4);
  width: 86%;
  margin-top: var(--s4);
  text-align: left;
  color: var(--ink-2);
  font-size: 0.95rem;
}

.tags span:last-child {
  text-align: right;
}

/* sections */
section {
  padding-block: clamp(4rem, 9vw, 6.5rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 650;
  line-height: 1.05;
  font-variation-settings: "wdth" 75;
  letter-spacing: -0.01em;
  margin-bottom: var(--s5);
}

/* the register */
.register {
  border: 1px solid var(--rule-sheet);
  border-radius: 4px;
  background: #fff;
}

.reg-row {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr) 8rem;
  border-top: 1px solid var(--rule-sheet);
}

.reg-row:first-child {
  border-top: 0;
}

.reg-row > * {
  padding: var(--s4) var(--s5);
}

.reg-row > * + * {
  border-left: 1px solid var(--rule-blue);
}

.reg-row.cols {
  background: #f7f9fd;
  color: var(--ink-2);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.reg-row.cols > * {
  padding-block: 0.6rem;
}

.reg-row.blank {
  min-height: var(--line);
}

.no {
  font-size: 1.6rem;
  line-height: 1.2;
}

.for {
  font-size: 1.2rem;
  line-height: 1.3;
}

.entry h3 {
  font-size: 1.15rem;
  font-weight: 600;
}

.entry p {
  margin-top: var(--s1);
  color: var(--ink-2);
}

/* walkthrough video (ISC-77): a sheet of the register, like the office window above it */
.walkthrough {
  margin-block: clamp(3rem, 7vw, 5rem) 0;
}

.walkthrough :is(video, img) {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #fff;
  border: 1px solid var(--rule-sheet);
  border-radius: 12px;
}

.walkthrough video[hidden] {
  display: none;
}

.walkthrough-missing,
.walkthrough figcaption {
  margin-top: var(--s4);
  color: var(--ink-2);
  font-size: 0.95rem;
}

.walkthrough-missing {
  font: 400 1.2rem / 1.3 var(--hand);
  color: var(--royal);
}

/* text pages (Privacy) */
.page-head {
  padding-block: clamp(3rem, 8vw, 5.5rem) clamp(2rem, 5vw, 3.5rem);
}

.page-head h1,
.page-head .sub {
  margin-inline: 0;
  max-width: none;
}

.page-head,
.prose {
  max-width: 72ch;
  padding-block: var(--s7) clamp(4rem, 9vw, 6.5rem);
}

.prose h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: var(--s7) 0 var(--s3);
}

.prose p + p,
.prose ul {
  margin-top: var(--s4);
}

.prose li + li {
  margin-top: var(--s2);
}

.prose a {
  color: var(--royal);
}

.notice {
  padding: var(--s4) var(--s5);
  border-left: 3px solid var(--royal);
  background: #f7f9fd;
}

/* an undecided item, pencilled into the register */
.pending {
  font: 400 1.1rem / 1 var(--hand);
  color: var(--royal);
  white-space: nowrap;
}

/* pricing and contact: a heading beside its content, under a rule */
.split {
  border-top: 1px solid var(--rule-sheet);
}

.price {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  line-height: 1.1;
}

/* contact: the inputs are register lines you write on */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(1.5rem, 5vw, 5rem);
}

/* kris#117: with the form switched off the contact block stands alone, so it centres instead of leaving a gap.
   shortcut: browsers without :has() (Chrome < 105) keep it left-aligned, which still reads fine. */
#contact .contact-grid:has(#enquiry-off) {
  grid-template-columns: 1fr;
  justify-items: center;
  text-align: center;
}

.lede {
  margin-top: var(--s4);
  max-width: 30ch;
  color: var(--ink-2);
}

#contact .contact-grid:has(#enquiry-off) .lede {
  margin-inline: auto;
}

form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s5);
}

.field {
  display: grid;
  gap: var(--s1);
  align-content: start;
}

label {
  color: var(--ink-2);
  font-size: 0.95rem;
  font-weight: 600;
}

input,
select {
  width: 100%;
  min-height: var(--tap);
  padding: 0.45rem 0.1rem;
  border: 0;
  border-bottom: 1.5px solid var(--line-input);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: 400 1.1rem / 1.5 var(--font);
}

input:hover,
select:hover {
  border-bottom-color: var(--ink-2);
}

input:focus-visible,
select:focus-visible {
  outline: none;
  border-bottom-color: var(--royal);
  box-shadow: 0 2px 0 0 var(--royal);
}

[aria-invalid="true"] {
  border-bottom-color: var(--error);
}

.error {
  color: var(--error);
  font-size: 0.9rem;
}

.error:empty {
  display: none;
}

/* the <noscript> itself is the grid item, so its .note alone can't span */
.note,
form noscript,
#enquiry-failed {
  grid-column: 1 / -1;
}

.note {
  color: var(--ink-2);
  font-size: 0.95rem;
}

form .btn {
  justify-self: start;
}

form[hidden],
.sent[hidden] {
  display: none;
}

.sent {
  border-top: 1.5px solid var(--rule-sheet);
  padding-top: var(--s4);
  line-height: var(--line);
}

.sent .hand {
  font-size: 1.9rem;
  animation: write 0.9s steps(18, end) both;
}

.sent .hand:focus {
  outline: none;
}

.sent p + p {
  color: var(--ink-2);
}

/* the entry being written, once */
@keyframes write {
  from {
    clip-path: inset(0 100% 0 0);
  }
  to {
    clip-path: inset(0 0 0 0);
  }
}

.foot {
  border-top: 1px solid var(--rule-sheet);
  padding-block: var(--s6);
  color: var(--ink-2);
  font-size: 0.95rem;
  text-align: center;
}

@media (max-width: 760px) {
  /* keep the margin rules clear of the text on a phone */
  .margin::before {
    left: 5px;
  }

  .margin::after {
    left: 9px;
  }

  nav ul {
    gap: 0.9rem;
  }

  /* the section is right below the hero; the language switch needs the room */
  .wide {
    display: none;
  }

  .window {
    width: 100%;
  }

  .phone {
    width: 40%;
    top: auto;
    bottom: 0;
  }

  .tags {
    width: 56%;
    flex-direction: column;
    gap: var(--s1);
    text-wrap: balance;
  }

  .tags span:last-child {
    text-align: left;
  }

  .contact-grid,
  form {
    grid-template-columns: 1fr;
  }

  .reg-row {
    grid-template-columns: 3rem minmax(0, 1fr);
  }

  .reg-row > * {
    padding: var(--s4);
  }

  .reg-row > .for {
    grid-column: 2;
    border-left: 1px solid var(--rule-blue);
    padding-top: 0;
  }

  .c3 {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn {
    transition: none;
  }

  .sent .hand {
    animation: none;
  }
}
