/* Fernhill Clay Co. — design concept. One motif: the circle of the wheel and the bowl seen from above. */
:root{
  --bg:#ebe5dc;
  --surface:#dfd6ca;
  --surface-2:#d2c7b8;
  --ink:#1f1a16;
  --muted:#5a5048;
  --accent:#2a3f9d;
  --accent-hover:#243889;
  --accent-ink:#ffffff;
  --accent-tone:#3d52b4;
  --field:#3a2a22;
  --field-2:#52403a;
  --field-ink:#efe8df;
  --field-muted:#cdbfb1;
  --clay:#c9b7a3;
  --clay-2:#a68b73;

  --display:"Newsreader","Iowan Old Style","Palatino Linotype",Palatino,Georgia,serif;
  --text:"Public Sans","Helvetica Neue","Avenir Next",system-ui,sans-serif;

  --step-small:clamp(0.875rem,0.85rem + 0.15vw,0.9375rem);
  --step-body:clamp(1.0625rem,1rem + 0.25vw,1.1875rem);
  --step-lead:clamp(1.25rem,1.1rem + 0.7vw,1.625rem);
  --step-head:clamp(2.125rem,1.4rem + 3.2vw,4rem);
  --step-display:clamp(3.4rem,11.5vw,6.25rem);

  --m:clamp(16px,2.4vw,32px);
  --gap-section:clamp(112px,13vw,200px);
  --ease-out:cubic-bezier(.23,1,.32,1);
  --ease-soft:cubic-bezier(.16,1,.3,1);
  --radius:999px;
}

*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth;background:var(--bg)}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
body{margin:0;background:var(--bg);color:var(--ink);font-family:var(--text);font-size:var(--step-body);line-height:1.55;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;overflow-x:clip}
h1,h2,h3,p,ul,ol,figure,fieldset{margin:0}
ul,ol{padding:0;list-style:none}
fieldset{padding:0;border:0;min-width:0}
legend{padding:0}
a{color:inherit;text-decoration-thickness:1px;text-underline-offset:.22em}
svg{display:block}
button{font:inherit;color:inherit}
::selection{background:var(--accent);color:var(--accent-ink)}
:focus-visible{outline:3px solid var(--accent);outline-offset:3px}
.foot :focus-visible,.studio .panel :focus-visible{outline-color:var(--clay)}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
h1,h2,h3{font-family:var(--display);font-weight:500;letter-spacing:-0.02em;line-height:1;text-wrap:balance;overflow-wrap:anywhere}
h2{font-size:var(--step-head)}
h3{font-size:var(--step-lead);line-height:1.15}

/* banner */
.notice{background:var(--ink);color:var(--bg);font-size:var(--step-small);line-height:1.4;padding:11px var(--m);text-align:center}
.notice a{color:var(--bg)}

/* buttons */
.btn{display:inline-flex;align-items:center;justify-content:center;min-height:52px;padding:0 28px;border-radius:var(--radius);border:0;background:var(--accent);color:var(--accent-ink);font:500 var(--step-body)/1 var(--text);text-decoration:none;cursor:pointer;transition:transform 160ms var(--ease-out),background-color 200ms ease}
.btn-small{min-height:44px;padding:0 20px;font-size:var(--step-small)}
.btn:active{transform:scale(.96)}
@media (hover:hover) and (pointer:fine){.btn:hover{background:var(--accent-hover)}}

/* header */
.top{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px var(--m) 0;position:relative;z-index:4}
.mark{display:inline-flex;align-items:center;gap:10px;text-decoration:none;font-family:var(--display);font-size:1.45rem;letter-spacing:-0.01em;min-height:44px}
.links{display:flex;align-items:center;gap:26px}
.links a{text-decoration:none;min-height:44px;display:inline-flex;align-items:center;font-weight:500}
.links a:not(.btn){padding:0 2px}
@media (hover:hover) and (pointer:fine){.links a:not(.btn):hover{color:var(--accent)}}
@media (max-width:767px){.links a:not(.btn){display:none}}

/* HERO */
.hero{position:relative;min-height:calc(100svh - 96px);display:grid;align-items:center;padding:0 0 0 8%;overflow:hidden}
.disc-wrap{position:absolute;top:55%;left:78%;width:120vh;height:120vh;transform:translate(-50%,-50%);pointer-events:none}
.disc{width:100%;height:100%}
.hero-copy{position:relative;z-index:2;max-width:34rem;padding:14svh 0 12svh}
h1{font-size:var(--step-display);line-height:.95;letter-spacing:-0.03em}
.lead{font-size:var(--step-lead);line-height:1.3;margin-top:28px;max-width:26ch}
.hero-actions{display:flex;flex-wrap:wrap;align-items:center;gap:16px 24px;margin-top:32px}
.tel{font-weight:500;min-height:44px;display:inline-flex;align-items:center}
.hours{margin-top:24px;color:var(--muted);max-width:30ch}
@media (max-width:767px){
  .hero{min-height:calc(100svh - 110px);padding:0 16px;align-items:start}
  .hero-copy{padding:36px 0 0}
  .lead{max-width:none}
  .disc-wrap{top:auto;left:50%;bottom:0;width:130vw;height:130vw;transform:translate(-50%,50%)}
}
@media (max-width:767px) and (max-height:700px){.disc-wrap{transform:translate(-50%,58%)}}
@media (min-width:768px) and (max-width:1100px){.disc-wrap{left:82%;width:100vh;height:100vh}}

/* section heads */
.section-head{display:flex;align-items:baseline;justify-content:space-between;gap:24px 48px;flex-wrap:wrap;padding:0 var(--m);margin-bottom:48px}
.head-note{color:var(--muted);max-width:36ch;text-wrap:pretty}

/* CLASSES */
.classes{padding:var(--gap-section) 0 0}
.menu{display:grid;grid-template-columns:1fr 1fr;gap:40px 64px;padding:0 var(--m)}
.menu li{display:grid;grid-template-columns:64px 1fr;gap:20px;align-items:start}
.bullet{width:64px;height:64px;flex:none}
.menu h3{display:flex;justify-content:space-between;align-items:baseline;gap:12px;font-family:var(--text);font-weight:600;font-size:var(--step-body);letter-spacing:0;line-height:1.3}
.menu .level{font-weight:400;color:var(--muted);white-space:nowrap;font-size:var(--step-small)}
.menu p{margin-top:6px;max-width:40ch;color:var(--ink)}
.menu .note{margin-top:6px;color:var(--accent);font-weight:500;font-size:var(--step-small)}
@media (max-width:767px){
  .menu{grid-template-columns:1fr;gap:32px}
  .menu li{grid-template-columns:52px 1fr;gap:16px}
  .bullet{width:52px;height:52px}
  .menu h3{flex-wrap:wrap}
}

/* SCHEDULE */
.schedule{padding:var(--gap-section) 0 0}
.filters{padding:0 var(--m);display:flex;flex-wrap:wrap;gap:20px 48px;align-items:flex-end;margin-bottom:28px}
.filter{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.filter legend{float:left;width:100%;font-weight:500;color:var(--muted);font-size:var(--step-small);margin-bottom:8px}
.chip{min-height:44px;padding:0 18px;border-radius:var(--radius);border:0;background:var(--surface);color:var(--ink);cursor:pointer;transition:background-color 200ms ease,color 200ms ease,transform 160ms var(--ease-out);font-weight:500}
.chip:active{transform:scale(.96)}
.chip.is-on{background:var(--ink);color:var(--bg)}
@media (hover:hover) and (pointer:fine){.chip:not(.is-on):hover{background:var(--surface-2)}}
.filter-note{color:var(--muted);flex-basis:100%;min-height:1.5em}
.week{width:calc(100% - 2 * var(--m));margin:0 var(--m);border-collapse:collapse;font-variant-numeric:tabular-nums}
.week th{text-align:left;font-weight:500;color:var(--muted);font-size:var(--step-small);padding:0 16px 14px 0;border-bottom:1px solid var(--surface-2)}
.week td{padding:18px 16px 18px 0;border-bottom:1px solid var(--surface-2);vertical-align:top}
.week td:first-child{font-weight:600;white-space:nowrap}
.week td:last-child,.week th:last-child{padding-right:0;text-align:right}
.week tr[hidden]{display:none}
.spot{display:inline-flex;align-items:center;gap:8px;white-space:nowrap}
.spot::before{content:"";width:12px;height:12px;border-radius:50%;background:var(--accent)}
.spot.wait{color:var(--muted)}
.spot.wait::before{background:var(--clay-2)}
.empty{padding:32px var(--m) 0;color:var(--muted);max-width:50ch}
@media (max-width:767px){
  .week thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
  .week,.week tbody,.week tr,.week td{display:block}
  .week tr{padding:18px 0;border-bottom:1px solid var(--surface-2);display:grid;grid-template-columns:1fr auto;gap:2px 16px}
  .week td{padding:0;border:0}
  .week td:first-child{grid-column:1;font-weight:600}
  .week td:nth-child(2){grid-column:1;color:var(--muted)}
  .week td:nth-child(3){grid-column:1;font-weight:500;margin-top:4px}
  .week td:nth-child(4),.week td:nth-child(5){grid-column:1;color:var(--muted)}
  .week td:nth-child(5)::before{content:"With "}
  .week td:last-child{grid-column:2;grid-row:1 / span 5;align-self:start;text-align:right}
}

/* STUDIO */
.studio{padding:var(--gap-section) 0 0}
.panel{margin:0 20px;background:var(--field);color:var(--field-ink);display:grid;grid-template-columns:1fr 1fr;min-height:88svh;overflow:hidden;border-radius:0}
.scene-col{position:relative;display:grid;place-items:center;padding:40px}
.scene{width:100%;max-width:min(100%,calc(88svh - 80px));aspect-ratio:1;overflow:hidden;position:relative}
.scene svg{width:100%;height:100%}
.scene[hidden]{display:none}
.scene-ring{position:absolute;width:min(calc(100% - 80px),calc(88svh - 80px));height:auto;pointer-events:none;left:50%;top:50%;transform:translate(-50%,-50%)}
.studio-col{display:flex;flex-direction:column;justify-content:space-between;padding:40px 48px 40px 24px;gap:40px}
.tabs{display:flex;flex-wrap:wrap;gap:6px 28px}
.tab{background:none;border:0;padding:0;min-height:44px;color:var(--field-muted);font-size:var(--step-body);cursor:pointer;font-weight:500;transition:color 200ms ease}
.tab.is-on{color:var(--field-ink);text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:.3em;text-decoration-color:var(--clay)}
@media (hover:hover) and (pointer:fine){.tab:hover{color:var(--field-ink)}}
.studio-text h2{max-width:16ch}
.studio-text p{margin-top:40px;max-width:40ch;color:var(--field-ink)}
.cells{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.cell{min-height:72px;border:0;border-radius:var(--radius);padding:0 20px;font-weight:500;cursor:pointer;transition:transform 160ms var(--ease-out),background-color 200ms ease;font-size:var(--step-body)}
.cell:active{transform:scale(.97)}
.cell-ink{background:var(--clay);color:var(--ink)}
.cell-tone{background:var(--field-2);color:var(--field-ink)}
@media (hover:hover) and (pointer:fine){.cell-ink:hover{background:#d8c8b4}.cell-tone:hover{background:#5f4c45}}
.demo-note{color:var(--field-muted);font-size:var(--step-small);margin-top:-24px}
.demo-note[hidden]{display:none}
.pieces{margin-top:88px;padding:72px var(--m) 80px;background:var(--surface)}
.pieces h3{font-size:var(--step-head);letter-spacing:-0.02em}
.piece-row{display:grid;grid-template-columns:repeat(6,1fr);gap:32px 24px;margin-top:48px;align-items:end}
.piece-row li{display:grid;gap:14px}
.piece-row svg{width:100%;height:auto;max-width:190px}
.piece-row span{font-size:var(--step-small);color:var(--ink);max-width:18ch;text-wrap:pretty}
.pieces-note{margin-top:32px;color:var(--muted);font-size:var(--step-small)}
@media (max-width:1100px){.piece-row{grid-template-columns:repeat(3,1fr)}}
@media (max-width:767px){
  .panel{margin:0 10px;grid-template-columns:1fr;min-height:0}
  .scene-col{padding:16px;order:2}
  .scene{max-width:none}
  .scene-ring{width:calc(100% - 32px)}
  .studio-col{padding:28px 20px 24px;gap:28px;order:1}
  .studio-text p{margin-top:20px}
  .cells{grid-template-columns:1fr}
  .cell{min-height:60px}
  .demo-note{margin-top:-14px}
  .pieces{margin-top:56px;padding:56px 16px 64px}
  .piece-row{grid-template-columns:1fr 1fr;gap:28px 20px}
}

/* TRIAL */
.trial{padding:var(--gap-section) var(--m) 0}
.coupon{position:relative;margin:0 auto;max-width:1180px;background:var(--accent);color:var(--accent-ink);display:grid;grid-template-columns:46% 1fr;min-height:0;border-radius:0}
.coupon::before,.coupon::after{content:"";position:absolute;left:46%;width:28px;height:28px;border-radius:50%;background:var(--bg);transform:translateX(-50%);z-index:1}
.coupon::before{top:-14px}
.coupon::after{bottom:-14px}
.coupon-left{padding:48px;display:flex;flex-direction:column;justify-content:space-between;gap:40px;border-right:5px dotted var(--bg)}
.coupon-left h2{max-width:10ch;color:var(--accent-ink)}
.coupon-left p{max-width:34ch}
.coupon-right{padding:48px;display:grid;gap:10px;align-content:start}
.coupon select,.coupon input[type=text]{width:100%;min-height:52px;border:0;border-radius:0;background:var(--accent-tone);color:var(--accent-ink);padding:0 18px;font:inherit;font-size:1rem;appearance:none;-webkit-appearance:none}
.coupon select{background-image:url("chevron.svg");background-repeat:no-repeat;background-position:right 16px center;background-size:18px}
.coupon ::placeholder{color:#e6e9f7;opacity:1}
.coupon input:focus-visible,.coupon select:focus-visible{outline-color:var(--bg)}
.when{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.when label{display:flex;align-items:center;gap:10px;min-height:52px;padding:0 16px;background:var(--accent-tone);cursor:pointer}
.when input{width:20px;height:20px;margin:0;accent-color:var(--bg)}
.submit{margin-top:6px;min-height:56px;border:0;border-radius:var(--radius);background:var(--ink);color:var(--bg);font-weight:500;cursor:pointer;font-size:var(--step-body);transition:transform 160ms var(--ease-out),background-color 200ms ease}
.submit:active{transform:scale(.97)}
@media (hover:hover) and (pointer:fine){.submit:hover{background:#000}}
.form-note{font-size:var(--step-small);color:var(--accent-ink);margin-top:6px}
.form-note[hidden]{display:none}
@media (max-width:767px){
  .trial{padding-left:12px;padding-right:12px}
  .coupon{grid-template-columns:1fr}
  .coupon::before,.coupon::after{display:none}
  .coupon-left{position:relative}
  .coupon-left::before,.coupon-left::after{content:"";position:absolute;bottom:-12px;width:28px;height:28px;border-radius:50%;background:var(--bg);z-index:1}
  .coupon-left::before{left:-14px}
  .coupon-left::after{right:-14px}
  .coupon-left{padding:36px 24px 32px;border-right:0;border-bottom:5px dotted var(--bg);gap:20px}
  .coupon-right{padding:32px 24px 36px}
  .when{grid-template-columns:1fr}
  .coupon select,.coupon input[type=text],.when label{min-height:54px}
}

/* FOOTER */
.foot{margin-top:var(--gap-section);background:var(--field);color:var(--field-ink);padding:0 var(--m) 32px;position:relative;overflow:hidden}
.foot-mark{width:100%;height:34svh;min-height:180px}
.foot-name{font-family:var(--display);font-size:clamp(2.6rem,8vw,7.5rem);line-height:1;letter-spacing:-0.03em;margin-top:40px;text-wrap:balance}
.foot-grid{display:grid;grid-template-columns:repeat(12,1fr);gap:32px;margin-top:56px}
.foot-links{grid-column:1 / span 4;display:grid;gap:4px;align-content:start}
.foot-links a{text-decoration:none;min-height:44px;display:inline-flex;align-items:center}
@media (hover:hover) and (pointer:fine){.foot-links a:hover{color:var(--clay)}}
.foot-contact{grid-column:5 / span 4;display:grid;gap:20px;align-content:start}
.foot-grid>*{min-width:0}
.foot-contact a{text-decoration:none;display:inline-block;padding:4px 0;overflow-wrap:anywhere}
@media (hover:hover) and (pointer:fine){.foot-contact a:hover{color:var(--clay)}}
.foot-hours{grid-column:9 / span 4;color:var(--field-muted)}
.foot-row{display:flex;justify-content:space-between;align-items:center;gap:24px;flex-wrap:wrap;margin-top:72px;font-size:var(--step-small);color:var(--field-muted)}
.credit a{color:var(--field-ink)}
.foot .btn{background:var(--clay);color:var(--ink)}
@media (hover:hover) and (pointer:fine){.foot .btn:hover{background:#d8c8b4}}
@media (max-width:767px){
  .foot-mark{height:22svh;min-height:120px}
  .foot-grid{grid-template-columns:1fr 1fr;gap:28px 20px}
  .foot-links,.foot-contact{grid-column:auto}
  .foot-hours{grid-column:1 / -1}
  .foot-row{margin-top:48px}
}

/* MOTION (only with JS, only without reduced motion) */
.shutter{overflow:visible}
@media (prefers-reduced-motion:no-preference){
  .js .shutter{clip-path:inset(0 0 100% 0);transition:clip-path 1100ms var(--ease-soft)}
  .js .shutter .disc{transform:scale(1.12);transition:transform 1500ms var(--ease-soft)}
  .js .shutter.is-in{clip-path:inset(0)}
  .js .shutter.is-in .disc{transform:none}
  .js .shutter.is-in .disc{animation:turn 160s linear 1.5s infinite}
  @keyframes turn{to{transform:rotate(360deg)}}
  .js [data-reveal]{opacity:0;transform:translateY(22px);transition:opacity 700ms var(--ease-soft),transform 900ms var(--ease-soft)}
  .js [data-reveal].is-in{opacity:1;transform:none}
  .js .menu li:nth-child(2n){transition-delay:80ms}
  .js .hero-copy > *{opacity:0;transform:translateY(18px);animation:rise 900ms var(--ease-soft) forwards}
  .js .hero-copy > :nth-child(1){animation-delay:120ms}
  .js .hero-copy > :nth-child(2){animation-delay:220ms}
  .js .hero-copy > :nth-child(3){animation-delay:320ms}
  .js .hero-copy > :nth-child(4){animation-delay:420ms}
  @keyframes rise{to{opacity:1;transform:none}}
  .js .scene svg{animation:settle 700ms var(--ease-soft)}
  @keyframes settle{from{opacity:0;transform:scale(1.04)}to{opacity:1;transform:none}}
  .js .week tr{transition:opacity 300ms ease}
}
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation:none !important;transition:none !important}
}
