/* Webrigg's pixel system: black, cool light gray and one signal-orange accent. */
:root {
  --rig-design: var(--accent);
  --rig-text: var(--paper);
  --rig-build: #3a3a3a;
  --rig-ink: #080808;
  --rig-step: 16px;
  --rig-cut: polygon(0 0, calc(100% - var(--rig-step)*2) 0, calc(100% - var(--rig-step)*2) var(--rig-step), calc(100% - var(--rig-step)) var(--rig-step), calc(100% - var(--rig-step)) calc(var(--rig-step)*2), 100% calc(var(--rig-step)*2), 100% 100%, calc(var(--rig-step)*2) 100%, calc(var(--rig-step)*2) calc(100% - var(--rig-step)), var(--rig-step) calc(100% - var(--rig-step)), var(--rig-step) calc(100% - var(--rig-step)*2), 0 calc(100% - var(--rig-step)*2));
}
.hero { position: relative; overflow: clip; display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.05fr); height: 100vh; height: 100svh; min-height: 680px; gap: 48px; padding-top: 132px; padding-bottom: 64px; align-items: center; }
.hero-copy { text-align: left; container-type: inline-size; }
.motion .hero-copy { animation: none; }
.hero-eyebrow { justify-content: flex-start; margin-bottom: 30px; }
.hero h1 { font-size: clamp(22px,4vw,72px); font-size: clamp(22px,8.05cqi,72px); line-height: 1.08; letter-spacing: -.04em; margin: 0; max-width: 100%; }
.hero h1 br { display: none; }
.hero-title-first, .hero-title-last { display: block; white-space: nowrap; }
.hero-title-mobile { display: none; }
.hero-description { max-width: 510px; margin: 28px 0 0; font-size: 18px; }
.hero-actions { justify-content: flex-start; flex-wrap: wrap; margin-top: 30px; }
.hero-assurances { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); align-items: start; gap: 16px; margin-top: 24px; max-width: 560px; }
.hero-assurances>span { display: flex; align-items: flex-start; gap: 8px; font-size: 12px; line-height: 1.5; }
.hero-assurances .ui-icon { flex-shrink: 0; margin-top: 3px; }
.hero-assurances .assurance-break { display: block; }
.rig-figure { position: relative; width: 100%; max-width: 640px; min-width: 0; margin: 0; justify-self: start; align-self: center; }
/* A quiet pixel field sits behind the illustration, away from the reading column. */
.rig-depth { --depth-cell: 48px; --depth-field: 960px; position: absolute; width: var(--depth-field); height: calc(var(--depth-field)*.9); left: 46%; top: 50%; transform: translate(-50%,-50%); pointer-events: none; z-index: -1; mask-image: radial-gradient(ellipse 54% 52% at 52% 48%, #000 48%, transparent 100%); }
.rig-figure { isolation: isolate; }
.rig-depth-grid { position: absolute; inset: 0; background-image: linear-gradient(rgb(230 236 239 / .105) 1px,transparent 1px),linear-gradient(90deg,rgb(230 236 239 / .105) 1px,transparent 1px); background-size: var(--depth-cell) var(--depth-cell); }
.rig-depth-pixel { position: absolute; left: calc(var(--col)*var(--depth-cell)); top: calc(var(--row)*var(--depth-cell)); width: var(--depth-cell); height: var(--depth-cell); background: var(--paper); opacity: .035; }
.rig-depth-pixel:nth-of-type(3n) { background: var(--accent); }
.has-rig-motion .rig-depth-pixel { animation: rig-depth-breathe 12s cubic-bezier(.45,0,.55,1) var(--delay) infinite; }
.is-rig-paused .rig-depth-pixel { animation-play-state: paused; }
@keyframes rig-depth-breathe {
  0%, 12%, 65%, 100% { opacity: .025; }
  32%, 42% { opacity: .14; }
}
@media (max-width: 1100px) {
  .rig-depth { --depth-cell: 36px; --depth-field: 756px; }
}
@media (max-width: 800px) {
  .rig-depth { --depth-cell: 32px; --depth-field: 704px; }
}
@media (max-width: 620px) {
  .rig-depth { --depth-cell: 24px; --depth-field: 528px; opacity: .85; }
  .rig-depth-pixel:nth-of-type(even) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .rig-depth-pixel { animation: none !important; }
}
/* Picture frames retain their stepped cut; service cards use rounded corners. */
.concept-cover, .concept-card:first-child .concept-cover { border-radius: var(--corner-radius); clip-path: var(--rig-cut); --rig-step: clamp(10px,1.5vw,22px); }
.cover-label { border-radius: var(--corner-radius); }
.service-card { position: relative; border-radius: var(--corner-radius); }
.work-section .section-head { position: relative; }
.work-section .section-heading { max-width: 900px; }
.concept-name { font-size: 28px; line-height: 1.1; }
@media (min-width: 761px) {
  .concept-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 24px; }
  .concept-card { display: flex; flex-direction: column; align-items: stretch; gap: 24px; }
  .concept-cover, .concept-card:first-child .concept-cover { flex: none; --rig-step: 16px; }
  .concept-cover .cover-label { top: 12px; left: 12px; padding: 8px 10px; font-size: 9px; }
  .concept-caption { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto 1fr; align-items: center; gap: 20px; }
  .concept-title-group { min-width: 0; gap: 8px; }
  .concept-name { font-size: 30px; }
  .concept-category { font-size: 14px; }
  .concept-summary { grid-column: 1 / -1; grid-row: 2; align-self: start; max-width: none; font-size: 16px; }
  .concept-action { grid-column: 2; grid-row: 1; justify-self: end; }
}
@media (min-width: 801px) { .service-card h3 { max-width: none; } }
.service-card:nth-child(2) p { max-width: none; }

/* Guided concept view: controls always remain outside the illustrated website. */
.project-dialog { width: min(1320px,calc(100% - 48px)); }
.project-toolbar { border: 0; gap: 24px; }
.project-toolbar h2 { font-size: 24px; }
.project-tools { display: flex; gap: 12px; align-items: center; flex-shrink: 0; }
.project-tools [hidden] { display: none; }
.project-site-link { min-height: 46px; padding: 13px 16px; font-size: 14px; gap: 10px; }
.project-stage .preview.mock-live { padding: 0; background: transparent; }
.mock-live>img { display: block; width: 100%; height: auto; }
.design-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 9px; border-radius: var(--corner-radius); padding: 13px 16px; min-height: 46px; background: var(--panel); color: var(--ink); font-size: 14px; transition: background .2s ease,color .2s ease; }
.design-toggle .ui-icon { width: 20px; height: 20px; }
.design-toggle[aria-expanded="true"] { background: var(--button-bg); color: var(--button-ink); }
.project-stage { display: grid; grid-template-columns: minmax(0,1fr); gap: 32px; align-items: start; max-width: 1040px; margin: auto; }
.project-stage .preview { width: 100%; min-width: 0; max-width: 980px; margin: auto; border-radius: var(--corner-radius); box-shadow: 0 8px 30px rgb(0 0 0 / .07); }
.project-dialog.has-design-notes .project-stage { grid-template-columns: minmax(0,1fr) 260px; max-width: none; }
.design-notes { padding-top: 8px; }
.design-notes[hidden] { display: none; }
.design-notes>.eyebrow { color: var(--secondary); font-size: 11px; margin-bottom: 12px; }
.design-notes h3 { font-size: 26px; letter-spacing: -.025em; }
.design-choices { display: grid; gap: 12px; margin-top: 24px; }
.design-choice { display: grid; grid-template-columns: 28px 1fr; gap: 10px; text-align: left; align-items: start; background: transparent; border-radius: var(--corner-radius); padding: 14px 12px; width: 100%; transition: background .2s; }
.design-choice[aria-pressed="true"] { background: var(--bg); }
.design-choice:hover { background: var(--surface); }
.design-choice-number { display: grid; place-items: center; width: 28px; height: 28px; background: var(--surface); font: 12px var(--mono); border-radius: var(--corner-radius); }
.design-choice[aria-pressed="true"] .design-choice-number { background: var(--accent); color: var(--button-ink); }
.design-choice strong { display: block; font-weight: 500; font-size: 16px; line-height: 1.35; margin: 3px 0 8px; }
.design-choice-copy { display: block; font-size: 14px; line-height: 1.5; color: var(--secondary); }
.design-note-footer { font-size: 12px; line-height: 1.5; color: var(--secondary); margin: 24px 12px 0; }
.mock-photo-frame { display: block; position: relative; }
.mock-photo-frame img { display: block; width: 100%; }
.mock-salon .mock-photo-frame { margin-top: 0; }
.mock-header, .mock-top, .mock-photo-frame { position: relative; }
.design-marker { display: none; position: absolute; width: 36px; height: 36px; padding: 0; place-items: center; border-radius: var(--corner-radius); background: #080808; color: var(--paper); font: 13px var(--mono); box-shadow: 0 4px 12px rgb(0 0 0 / .15); z-index: 1; }
.has-design-notes .design-marker { display: grid; }
.design-marker[data-choice="0"] { right: 12px; bottom: 10px; }
.design-marker[data-choice="1"] { left: 16px; top: 16px; }
.design-marker[data-choice="2"] { right: 12px; bottom: -16px; }
.design-marker[aria-pressed="true"] { background: var(--accent); color: var(--button-ink); }
.has-design-notes [data-design-target].is-design-target { box-shadow: inset 0 0 0 3px var(--accent); }
.has-design-notes .mock-photo-frame.is-design-target::after { content: ''; position: absolute; inset: 0; box-shadow: inset 0 0 0 3px var(--accent); pointer-events: none; }
.has-design-notes .mock-header { padding-right: 8cqw; }
.has-design-notes .mock-header .mock-links>span:not(.mock-nav-cta) { display: none; }
.project-navigation { border: 0; }
.project-navigation button { background: var(--panel); padding: 12px 18px; border-radius: var(--corner-radius); min-height: 44px; }
@media (max-width: 1100px) {
  .hero { gap: 24px 32px; }
  .hero-description { font-size: 16px; }
  .project-dialog.has-design-notes .project-stage { grid-template-columns: minmax(0,1fr) 230px; gap: 24px; }
}
@media (max-width: 800px) {
  .hero { grid-template-columns: 1fr; height: auto; min-height: 100vh; min-height: 100svh; padding-top: 120px; padding-bottom: 48px; gap: 36px; align-content: center; }
  .hero-copy { max-width: 650px; }
  .hero-description { max-width: 560px; }
  .rig-figure { width: min(100%,460px); justify-self: center; }
  .hero-assurances { margin-top: 24px; }
  .project-toolbar { flex-wrap: wrap; gap: 12px; padding: 20px; }
  .project-toolbar>div:first-child { flex: 1; min-width: 0; }
  .project-toolbar h2 { font-size: 20px; }
  .project-tools { gap: 8px; }
  .design-toggle { font-size: 12px; padding: 12px; }
  .project-dialog.has-design-notes .project-stage { grid-template-columns: minmax(0,1fr); }
  .design-notes { padding: 0 6px 8px; }
  .design-choices { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 6px; margin-top: 16px; }
  .design-choice { display: flex; flex-direction: column; padding: 12px; }
  .design-choice strong { font-size: 14px; }
  .design-choice-copy { font-size: 13px; }
  .design-note-footer { margin-top: 16px; }
}
@media (max-width: 620px) {
  .hero { padding-top: 112px; padding-bottom: 40px; gap: 36px; }
  .hero { --hero-extra-line-delay: 110ms; }
  .hero h1 { font-size: clamp(30px,10.5vw,64px); font-size: clamp(30px,11.5cqi,64px); }
  .hero-title-desktop { display: none; }
  .hero-title-mobile { display: inline; }
  .hero-title-third { display: block; white-space: nowrap; }
  .hero-eyebrow { margin-bottom: 24px; font-size: 11px; }
  .hero-description { margin-top: 24px; }
  .hero-actions { margin-top: 26px; gap: 10px; }
  .rig-figure { width: min(100%,400px); }
  .hero-assurances { width: 100%; margin-top: 22px; gap: 12px; }
  .hero-assurances>span { flex-direction: column; align-items: flex-start; text-align: left; font-size: 10px; gap: 6px; }
  .project-dialog { width: calc(100% - 16px); }
  .project-toolbar { padding: 16px; display: grid; grid-template-columns: 1fr; }
  .project-toolbar>div:first-child { padding-right: 44px; }
  .project-tools { justify-content: flex-start; }
  .project-tools .icon-button { position: absolute; top: 16px; right: 16px; width: 40px; height: 40px; }
  .design-toggle { min-height: 44px; padding: 11px 14px; font-size: 13px; }
  .project-preview-wrap { padding: 16px 12px; }
  .design-choices { grid-template-columns: 1fr; gap: 6px; }
  .design-choice { display: grid; grid-template-columns: 28px 1fr; }
  .design-choice strong { font-size: 16px; }
  .design-choice-copy { font-size: 14px; }
  .design-marker { width: 32px; height: 32px; font-size: 12px; }
  .design-marker::before { content: ''; position: absolute; inset: -6px; }
  .design-marker[data-choice="0"] { bottom: 8px; right: 8px; }
  .design-marker[data-choice="1"] { top: 10px; left: 10px; }
  .design-marker[data-choice="2"] { bottom: -16px; right: 8px; }
}
/* Accent roles stay consistent across navigation, services and the contact area. */
.pixel-spark { background: var(--warm); }
.hero-assurances .ui-icon { color: var(--accent); }
.process-row>span { background: var(--accent); color: var(--button-ink); }
.service-card:nth-child(3) .pixel-icon { fill: var(--accent); }

/* Light sections have their own readable surface, text and focus roles. */
.contrast-section {
  color-scheme: light;
  --bg: var(--paper);
  --ink: #080808;
  --secondary: #485158;
  --panel: #d5dde1;
  --surface: #f6f8f9;
  --line: #bac6cc;
  --accent-soft: #d5dde1;
  --soft-hover: #c6d1d7;
  --panel-hover: #c6d1d7;
  --focus: #ad3a00;
  --invalid: #b82e21;
  background: var(--paper);
  color: var(--ink);
}
.work-section.contrast-section {
  --work-space: clamp(24px, 7vw, 96px);
  padding: var(--work-space);
}
.work-section.contrast-section > .wrap { width: 100%; padding-inline: 0; }
.work-section+.statement { padding-top: 112px; }
.statement { container-type: inline-size; }
.statement h2 { font-size: min(64px, 7.1cqi); text-wrap: nowrap; }
.services .section-head>.button { margin-left: auto; }
.faq.section { padding-bottom: calc(var(--gutter) + 32px); }
.concept-action { background: #080808; color: #f2f2f2; white-space: nowrap; }
@media (max-width: 760px) {
  .concept-caption { grid-template-columns: minmax(0, 1fr) auto; }
  .concept-title-group { min-width: 0; }
}
.concept-card:focus-visible .concept-action { background: var(--accent); color: var(--button-ink); }
@media (hover:hover) and (pointer:fine) {
  .concept-action:hover { background: var(--accent); color: var(--button-ink); }
}
.contact-form { background: var(--surface); color: var(--ink); }
.footer .contact-intro>.eyebrow, .footer .contact-next, .footer .footer-bottom { color: var(--secondary); }
.footer .contact-email-row { background: var(--surface); color: var(--ink); }
.footer .contact-email { color: var(--ink); }
.footer .email-copy-feedback { color: var(--secondary); }
.footer .contact-email:hover, .footer .footer-bottom a:hover { color: var(--focus); }
.footer .footer-bottom a:focus-visible { outline-color: var(--focus); }
.contact-form .form-status[data-state="success"] { color: var(--ink); }
@media (max-width:620px) {
  .work-section+.statement { padding-top: 72px; }
}

/* The introduction and the collaboration steps each get their own space. */
.about { row-gap: 56px; }
.about.section { padding-bottom: 48px; }
.about-photo { width: 100%; max-width: 440px; max-height: none; aspect-ratio: 1; align-self: center; }
.about-photo img { width: 100%; height: 100%; max-height: none; aspect-ratio: 1; object-fit: cover; object-position: center 10%; }
.about-content { align-self: center; }
.about-process { grid-column: 1 / -1; }
.about-process>.eyebrow { color: var(--secondary); margin-bottom: 24px; }
.about-process .process { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 32px; list-style: none; padding: 0; margin: 0; }
.about-process .process-row { display: flex; flex-direction: column; gap: 20px; padding: 24px 0 0; border: 0; background: transparent; }
.about-process .process-row h3 { font-size: 22px; }
.about-process .process-row p { max-width: 340px; margin-top: 10px; font-size: 15px; line-height: 1.6; }
@media (max-width: 800px) {
  .about { row-gap: 40px; }
  .about-process .process { gap: 24px; }
  .about-process .process-row h3 { font-size: 20px; }
  .about-process .process-row p { font-size: 14px; }
}
@media (max-width: 620px) {
  .services.section { padding-bottom: 16px; }
  .about.section { padding-top: 0; }
  .about-photo { max-width: 100%; }
  .about-process { margin-top: 8px; }
  .about-process .process { grid-template-columns: 1fr; gap: 24px; }
  .about-process .process-row { flex-direction: row; gap: 20px; }
  .about-process .process-row h3 { font-size: 21px; }
  .about-process .process-row p { max-width: none; font-size: 15px; }
}

/* Fixed navigation stays legible across the black and light-gray sections. */
html:has(.header--fixed) { scroll-padding-top: 96px; }
/* Keep the compact, opaque shape at every scroll position, including the hero. */
.header--fixed {
  --header-row-height: 76px;
  --header-toggle-size: 48px;
  position: fixed; inset: 0 0 auto;
  inset-inline: max(calc(var(--gutter) / 2), calc((100% - 1520px) / 2 + var(--gutter) / 2));
  z-index: 30; width: auto; height: auto;
  display: block;
  overflow: visible; background: #080808; border-bottom: 1px solid #181818; border-inline: 1px solid #181818;
}
.header-inner { height: calc(var(--header-row-height) - 1px); display: flex; align-items: center; justify-content: space-between; padding-inline-end: calc((var(--header-row-height) - 1px - var(--header-toggle-size)) / 2); }
.header--fixed .menu-toggle { width: var(--header-toggle-size); height: var(--header-toggle-size); flex-shrink: 0; }
.motion .header--fixed { animation: header-arrive 550ms cubic-bezier(.16,1,.3,1) both; }
@keyframes header-arrive { from { transform: translateY(-110%); } to { transform: translateY(0); } }
.contact-methods { display: grid; gap: 24px; width: fit-content; max-width: 100%; margin-top: 30px; }
.contact-methods .contact-email-row { width: 100%; margin-top: 0; justify-content: space-between; padding-inline-start: 24px; }
.contact-methods .contact-email { flex: 1; gap: 18px; }
.contact-methods .email-copy-button,
.contact-methods .email-copy-button:is(:hover, :active, [data-copied="true"]) {
  background: var(--accent);
  color: var(--button-ink);
}
@media (max-width: 620px) { .contact-methods { width: 100%; } .contact-methods .contact-email-row { padding-inline-start: 20px; } }
.project-type-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.project-type-options label>span { display: flex; align-items: center; justify-content: center; height: 100%; min-height: 48px; padding: 12px 8px; line-height: 1.35; text-align: center; }
.brand:has(>.brand-dot) { gap: 4px; }
.brand-dot { flex: none; width: 5px; height: 5px; background: var(--accent); align-self: flex-end; margin-bottom: 3px; }
.brand-logo { display: block; flex: none; width: auto; height: 32px; object-fit: contain; }
.site-footer-brand .brand-logo { height: 48px; }
@media (max-width: 620px) {
  .brand-logo { height: 28px; }
  .site-footer-brand .brand-logo { height: 40px; }
}
@media (max-width: 360px) { .header .brand-logo { height: 26px; } }
@media (max-width: 620px) { .brand-dot { width: 4px; height: 4px; margin-bottom: 2px; } }
@media (max-width: 800px) { .header--fixed { --header-row-height: 68px; } }
@media (max-width: 620px) { .header--fixed { --header-toggle-size: 42px; } }
@media (prefers-reduced-motion: reduce) { .header--fixed, .motion .header--fixed { transition: none; animation: none; } }
.static .header--fixed { transition: none; animation: none; }
