/* HALIS. — Soft Atelier
   Tokens, base, components. Border radius is 0 everywhere by design. */

:root {
  --paper: #f6f2eb;
  --paper-alt: #efe9df;
  --ink: #352c28;
  --ink-light: #3e332e;
  --sage: #626f59;
  --sage-dark: #4f5a47;
  --blush: #d6b9aa;
  --muted: #6a615b;
  --body: #5c534d;
  --body-dark: #e2dbd1;
  --muted-dark: #c0b3a8;
  --hairline: rgba(53, 44, 40, 0.12);
  --hairline-soft: rgba(53, 44, 40, 0.1);
  --hairline-dark: rgba(246, 242, 235, 0.18);
  --outline: rgba(53, 44, 40, 0.32);
  --outline-dark: rgba(246, 242, 235, 0.4);
  --row-hover: rgba(214, 185, 170, 0.18);

  --serif: "Newsreader", Georgia, serif;
  --sans: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --tc: "Noto Serif TC", "Newsreader", Georgia, serif;

  --gutter: clamp(20px, 5vw, 72px);
  --section-y: clamp(56px, 7vw, 104px);
  --media-gap: clamp(18px, 2.2vw, 28px);
  --split-gap: clamp(36px, 5vw, 80px);

  --ease-reveal: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-wipe: cubic-bezier(0.65, 0, 0.35, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--blush); color: var(--ink); }

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

a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 300;
  margin: 0;
  letter-spacing: -0.03em;
  line-height: 0.98;
}

p { margin: 0; }

em {
  font-style: italic;
  font-weight: 250;
}

.container {
  max-width: 1560px;
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.section { padding-top: var(--section-y); padding-bottom: var(--section-y); }

.band-alt { background: var(--paper-alt); }

.band-dark {
  background: var(--ink);
  color: var(--paper);
}

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}

.band-dark .eyebrow { color: var(--muted-dark); }

.tc {
  font-family: var(--tc);
  font-weight: 400;
  letter-spacing: 0.14em;
  color: var(--sage);
  font-size: clamp(16px, 1.5vw, 19px);
  margin: 0;
}

.lede {
  color: var(--body);
  font-size: clamp(15px, 1.3vw, 16.5px);
  line-height: 1.8;
}

.band-dark .lede { color: var(--body-dark); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 17px 28px;
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid transparent;
  transition: background-color 350ms ease, color 350ms ease, border-color 300ms ease;
  cursor: pointer;
}

.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: var(--sage); }

.btn-sage { background: var(--sage); color: var(--paper); }
.btn-sage:hover { background: var(--sage-dark); }

.btn-paper { background: var(--paper); color: var(--ink); }
.btn-paper:hover { background: var(--blush); }

.btn-outline {
  border-color: var(--outline);
  color: var(--ink);
}
.btn-outline:hover {
  border-color: var(--ink);
  background: rgba(246, 242, 235, 0.6);
}

.btn-outline-dark {
  border-color: var(--outline-dark);
  color: var(--paper);
}
.btn-outline-dark:hover { background: rgba(246, 242, 235, 0.1); }

/* Brand icons */
.icon {
  width: 16px;
  height: 16px;
  fill: currentColor;
  flex: none;
  display: block;
}

.link-underline {
  display: inline-block;
  font-size: 13.5px;
  letter-spacing: 0.06em;
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 4px;
  transition: border-color 300ms ease, color 300ms ease;
}
.link-underline:hover { border-color: var(--ink); color: var(--sage); }

.icon-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 242, 235, 0.93);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--hairline-soft);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 18px;
  padding-bottom: 18px;
}

.wordmark {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(20px, 2.2vw, 26px);
  letter-spacing: 0.24em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 34px);
}

.nav-links a {
  font-size: 14px;
  letter-spacing: 0.03em;
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
  transition: border-color 300ms ease, color 300ms ease;
}

.nav-links a:hover { color: var(--sage); }
.nav-links a[aria-current="page"] { border-bottom-color: var(--ink); }

.nav-cta {
  padding: 0;
  width: 46px;
  height: 46px;
  justify-content: center;
}

.nav-cta .icon { width: 20px; height: 20px; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 10px 2px;
  font-family: var(--sans);
  font-size: 12.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  cursor: pointer;
}

.nav-toggle::after { content: "Menu"; }
.nav[data-open="true"] .nav-toggle::after { content: "Close"; }

.nav-panel { display: none; }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }

  .nav[data-open="true"] .nav-panel {
    display: block;
    border-top: 1px solid var(--hairline-soft);
    padding-bottom: 26px;
  }

  .nav-panel a:not(.btn) {
    display: block;
    padding: 15px 0;
    font-family: var(--serif);
    font-weight: 300;
    font-size: 22px;
    border-bottom: 1px solid var(--hairline-soft);
  }

  .nav-panel .btn {
    margin-top: 22px;
    width: 100%;
    justify-content: center;
  }
}

/* Hero */
.hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(36px, 5vw, 72px);
  padding-top: clamp(48px, 6vw, 92px);
  padding-bottom: clamp(56px, 7vw, 104px);
}

.hero-text { flex: 1 1 400px; }
.hero-media { flex: 1 1 340px; position: relative; }

.hero h1 {
  font-size: clamp(54px, 8.4vw, 116px);
  line-height: 0.94;
  margin: 18px 0 20px;
}

.hero h1 span,
.page-head h1 span { display: block; }

.hero-intro { max-width: 420px; margin: 22px 0 32px; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 26px;
}

.botanical {
  width: 62px;
  opacity: 0.55;
  margin-top: 40px;
  animation: drift 5.5s ease-in-out infinite alternate;
}

@keyframes drift {
  from { transform: translateY(0); }
  to { transform: translateY(-12px); }
}

.hero-frame {
  overflow: hidden;
  animation: wipe 1.5s var(--ease-wipe) 0.15s both;
}

.hero-frame img {
  width: 100%;
  height: clamp(380px, 52vw, 660px);
  object-fit: cover;
  animation: kenburns 22s ease-in-out infinite alternate;
}

@keyframes wipe {
  from { clip-path: inset(0 0 100% 0); }
  to { clip-path: inset(0); }
}

@keyframes kenburns {
  from { transform: scale(1.03); }
  to { transform: scale(1.13); }
}

.caption-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 14px;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Values strip */
.values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.values > div {
  padding: clamp(34px, 4vw, 50px) clamp(20px, 4vw, 56px);
  border-left: 1px solid var(--hairline);
}

.values > div:first-child { border-left: 0; }

.values h3 {
  font-size: clamp(24px, 2.4vw, 28px);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.values p { color: var(--muted); font-size: 14.5px; }

/* Section header row */
.head-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--split-gap);
  margin-bottom: clamp(32px, 4vw, 56px);
}

.head-row h2 {
  font-size: clamp(38px, 5.2vw, 64px);
  margin: 14px 0 0;
}

.head-row .lede { max-width: 340px; }

/* Figures */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: var(--media-gap);
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: var(--media-gap);
}

figure { margin: 0; }

.frame { overflow: hidden; }

.frame img {
  width: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease-reveal);
}

a:hover .frame img,
figure:hover .frame img { transform: scale(1.05); }

.fig-caption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  border-top: 1px solid var(--hairline);
  padding-top: 14px;
  margin-top: 14px;
}

.fig-caption .title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 20px;
  letter-spacing: -0.01em;
}

.fig-caption .cat {
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.card-3 img { height: clamp(340px, 32vw, 440px); }

/* Story */
.story-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: var(--media-gap);
}

.story-stack {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: var(--media-gap);
}

.shot { position: relative; overflow: hidden; }

.shot img { width: 100%; height: 100%; object-fit: cover; }

.shot-tall img {
  height: clamp(420px, 46vw, 588px);
  animation: kenburns 26s ease-in-out infinite alternate;
}

.shot-half img { height: clamp(200px, 22vw, 282px); }

.chip {
  position: absolute;
  left: 16px;
  bottom: 16px;
  background: var(--paper);
  color: var(--ink);
  padding: 9px 16px;
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* Services */
.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: var(--split-gap);
  align-items: start;
}

.split h2 { font-size: clamp(36px, 5vw, 62px); margin: 14px 0 22px; }

.service-row {
  display: grid;
  grid-template-columns: 44px 1fr 20px;
  align-items: center;
  gap: 8px;
  padding: clamp(22px, 2.4vw, 30px) 0;
  border-top: 1px solid var(--hairline);
  transition: background-color 300ms ease;
}

.service-row:last-of-type { border-bottom: 1px solid var(--hairline); }

.service-row:hover { background: var(--row-hover); }

.service-row .idx {
  font-size: 11.5px;
  letter-spacing: 0.14em;
  color: var(--muted);
  padding-left: 4px;
}

.service-row .name {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(24px, 2.6vw, 31px);
  letter-spacing: -0.02em;
  line-height: 1.12;
}

.service-row .sub {
  font-size: 14px;
  color: var(--muted);
  margin-top: 6px;
}

.service-row .sub .zh { font-family: var(--tc); letter-spacing: 0.1em; color: var(--sage); }

.arrow { color: var(--muted); text-align: right; }

.note {
  margin-top: 22px;
  font-size: 13px;
  color: var(--muted);
}

/* Classes teaser / about / generic centred split */
.split-center { align-items: center; }

.split-center h2 { font-size: clamp(36px, 4.8vw, 60px); }

.band-dark .tc { color: var(--blush); }

.portrait { width: 100%; object-fit: cover; }

/* Enquiry */
.enquiry {
  position: relative;
  overflow: hidden;
  padding-top: clamp(68px, 9vw, 124px);
  padding-bottom: clamp(68px, 9vw, 124px);
}

.enquiry-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
}

.enquiry-inner { position: relative; max-width: 660px; }

.enquiry h2 { font-size: clamp(44px, 6.4vw, 76px); margin: 16px 0 22px; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 32px;
}

.btn-row .btn { padding: 19px 30px; }

/* Footer */
.footer {
  border-top: 1px solid var(--hairline);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  padding-top: 34px;
  padding-bottom: 34px;
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.footer-social {
  display: inline-flex;
  align-items: center;
  gap: 18px;
}

.footer-social a {
  display: inline-flex;
  transition: color 300ms ease;
}

.footer-social a:hover { color: var(--sage); }

.footer-social .icon { width: 17px; height: 17px; }

/* Work page */
.page-head {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: var(--split-gap);
  align-items: end;
  padding-top: clamp(48px, 6vw, 88px);
  padding-bottom: clamp(34px, 4vw, 56px);
}

.page-head h1 { font-size: clamp(50px, 8vw, 96px); margin: 16px 0 18px; }

.page-head .lede { max-width: 420px; }

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-bottom: clamp(26px, 3vw, 40px);
  border-bottom: 1px solid var(--hairline);
}

.chip-btn {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 12px 22px;
  border: 1px solid var(--outline);
  background: none;
  color: var(--ink);
  cursor: pointer;
  transition: background-color 300ms ease, color 300ms ease, border-color 300ms ease;
}

.chip-btn:hover { border-color: var(--ink); }

.chip-btn[aria-pressed="true"] {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.gallery-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--media-gap);
  align-items: flex-end;
  margin-bottom: var(--media-gap);
}

.gallery-row > figure { flex: 1 1 min(100%, 320px); }
.gallery-row > figure.wide { flex: 1.5 1 min(100%, 420px); }
.gallery-row > figure.wider { flex: 1.4 1 min(100%, 400px); }

.h-hero img { height: clamp(420px, 52vw, 700px); }
.h-tall img { height: clamp(420px, 46vw, 600px); }
.h-med img { height: clamp(360px, 40vw, 520px); }
.h-card img { height: clamp(360px, 34vw, 480px); }
.h-short img { height: clamp(350px, 32vw, 460px); }
.h-wide img { height: clamp(400px, 42vw, 560px); }

.grid-block { margin-bottom: var(--media-gap); }

figure[hidden] { display: none; }

.story-banner {
  position: relative;
  overflow: hidden;
  margin: clamp(40px, 5vw, 72px) 0;
}

.story-banner img {
  width: 100%;
  height: clamp(460px, 56vw, 620px);
  object-fit: cover;
  object-position: 50% 30%;
  animation: kenburns 24s ease-in-out infinite alternate;
}

.story-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(38, 31, 28, 0.82) 0%, rgba(38, 31, 28, 0.34) 62%, rgba(38, 31, 28, 0.1) 100%);
}

.story-copy {
  position: absolute;
  left: var(--gutter);
  bottom: clamp(30px, 4vw, 56px);
  z-index: 2;
  max-width: 540px;
  color: var(--paper);
}

.story-copy .eyebrow { color: var(--blush); }
.story-copy h2 { font-size: clamp(34px, 5.4vw, 58px); margin: 14px 0 14px; }
.story-copy p { color: var(--body-dark); font-size: clamp(15px, 1.3vw, 16.5px); }

.cta-band {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--split-gap);
}

.cta-band h2 { font-size: clamp(38px, 5.6vw, 64px); }

/* Classes page */
.class-cells {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.class-cells > div {
  padding: clamp(34px, 4.4vw, 56px) clamp(20px, 4vw, 56px);
  border-left: 1px solid var(--hairline);
}

.class-cells > div:first-child { border-left: 0; }

.class-cells .idx {
  font-size: 11.5px;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.class-cells h3 {
  font-size: clamp(27px, 3vw, 34px);
  margin: 16px 0 10px;
}

.class-cells .tc { font-size: 15px; margin-bottom: 14px; }

.class-cells p { font-size: 15px; color: var(--body); }

.steps > div {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 12px;
  padding: clamp(20px, 2.4vw, 30px) 0;
  border-top: 1px solid var(--hairline);
}

.steps > div:first-child { border-top: 0; padding-top: 0; }

.steps .num {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 22px;
  color: var(--sage);
}

.steps h3 { font-size: clamp(22px, 2.2vw, 26px); margin-bottom: 8px; }

.steps p { font-size: 14.5px; color: var(--muted); }

.info-split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
  gap: var(--split-gap);
  align-items: stretch;
}

.info-split .frame img { min-height: clamp(340px, 44vw, 560px); height: 100%; }

.spec {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 12px;
  padding: 20px 0;
  border-top: 1px solid var(--hairline);
}

.spec:last-of-type { border-bottom: 1px solid var(--hairline); }

.spec dt {
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 4px;
}

.spec dd {
  margin: 0;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(19px, 1.9vw, 23px);
  letter-spacing: -0.01em;
  line-height: 1.35;
}

/* Reveals */
.reveal {
  opacity: 0;
  transform: translateY(24px);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
  transition: opacity 1s var(--ease-reveal), transform 1.05s var(--ease-reveal);
}

.rise {
  animation: rise 1s var(--ease-reveal) both;
}

.rise-1 { animation-delay: 0.12s; }
.rise-2 { animation-delay: 0.3s; }
.rise-3 { animation-delay: 0.4s; }

@keyframes rise {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  .rise { animation: none; }
  .hero-frame { animation: none; }
  .hero-frame img,
  .shot-tall img,
  .story-banner img,
  .botanical { animation: none; }
  .frame img { transition: none; }
  * { scroll-behavior: auto; }
}

html { scroll-behavior: smooth; }
